File associations with hugs 98 for windows

Pepe Gallardo pepeg@lcc.uma.es
Fri, 15 Jun 2001 12:55:04 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_003E_01C0F59A.655A9DA0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Which version of hugs are you using? I use the last one and have no =
problem with the following association

"c:\program files\hugs98\winhugs.exe" "%1"
  ----- Original Message -----=20
  From: Alex Summers=20
  To:     =20
  Sent: Friday, June 15, 2001 1:11 AM
  Subject: File associations with hugs 98 for windows


  Hi there,

  I have recently started using Hugs 98 for Windows (previously was =
using the MSDOS version). In general it works fine and contains lots of =
useful features. However, in contrast to the MSDOS version, if I =
associate .hs files with hugs98 for windows, and then attempt to open =
them directly (double-clicking on the script file) then it fails with an =
error such as :
  =20
  ERROR ""C:\HaskellProject\HaskellProject(alex-new).hs"": Unable to =
open file=20
  ""C:\HaskellProject\HaskellProject(alex-new).hs"" =20
  =20
  It seems that for some reason the filename gains two sets of double =
quotes which makes it unreadable. I can only guess that Windows supplies =
one set with its file-passing convention, and hugs supplies the other.

  Interestingly, I can still edit the file (even from the hugs prompt), =
as WordPad accepts the filename correctly. But any attempt to load it at =
the hugs prompt fails, and I have to remove it from the script manager =
and then add it manually. In the script manager the filename has a =
single set of double quotes, which script files (e.g. the prelude) do =
not normally have here.

  Any help would be greatly appreciated.

  Thanks in advance,

  Alex Summers

------=_NextPart_000_003E_01C0F59A.655A9DA0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Which version of hugs are you using? I =
use the last=20
one and have no problem with the following association</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"c:\program files\hugs98\winhugs.exe"=20
"%1"</FONT></DIV>
<BLOCKQUOTE=20
style=3D"BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: =
0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A href=3D"mailto:ajs300m@doc.ic.ac.uk" =
title=3Dajs300m@doc.ic.ac.uk>Alex=20
  Summers</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> &nbsp;&nbsp;&nbsp; <A=20
  href=3D"mailto:hugs-bugs@haskell.org" =
title=3Dhugs-bugs@haskell.org></A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, June 15, 2001 =
1:11 AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> File associations with =
hugs 98=20
  for windows</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Hi there,</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>I have recently started using Hugs 98 =
for Windows=20
  (previously was using the MSDOS version). In general it works fine and =

  contains lots of useful features. However, in contrast to the MSDOS =
version,=20
  if I associate .hs files with hugs98 for windows, and then attempt to =
open=20
  them directly (double-clicking on the script file) then it fails with =
an error=20
  such as :</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2>ERROR=20
  ""C:\HaskellProject\HaskellProject(alex-new).hs"": Unable to open file =

  </FONT></DIV>
  <DIV><FONT face=3DArial=20
  size=3D2>""C:\HaskellProject\HaskellProject(alex-new).hs""&nbsp; =
</FONT></DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV>It seems that for some reason the filename gains two sets of =
double=20
  quotes which makes it unreadable. I can only guess that Windows =
supplies one=20
  set with its file-passing convention, and hugs supplies the =
other.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Interestingly, I can still edit the file (even from the hugs =
prompt), as=20
  WordPad accepts the filename correctly. But any attempt to load it at =
the hugs=20
  prompt fails, and I have to remove it from the script manager and then =
add it=20
  manually. In the script manager the filename has a single set of =
double=20
  quotes, which script files (e.g. the prelude) do not normally have =
here.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Any help would be greatly appreciated.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thanks in advance,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Alex Summers</DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_003E_01C0F59A.655A9DA0--