File associations with hugs 98 for windows

Alex Summers ajs300m@doc.ic.ac.uk
Fri, 15 Jun 2001 13:27:17 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C0F59E.E5B11700
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, thanks for getting back so soon.

I'm using May 1999 version, which could be my problem. How do you create =
an association like the one you wrote below? I am using "Open with" from =
Windows and I can't see any way to specify parameters... only to specify =
the program I want to use.

I have just upgraded to Feb 2001 version, and the install program =
appears to have automatically associated .hs files with hugs.exe (the =
ms-dos style one) and I cannot change it. If I specify the winhugs (or =
even Notepad) should be always used to open .hs files, hugs.exe still =
does it.

Any help would be really appreciated.

Thanks,

Alex
  ----- Original Message -----=20
  From: Pepe Gallardo=20
  To: Alex Summers=20
  Cc: hugs-bugs@haskell.org=20
  Sent: Friday, June 15, 2001 11:55 AM
  Subject: Re: File associations with hugs 98 for windows


  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_0013_01C0F59E.E5B11700
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.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, thanks for getting back so =
soon.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm using May 1999 version, which could =
be my=20
problem. How do you create an association like the one you wrote below? =
I am=20
using "Open with" from Windows and I can't see any way to specify =
parameters...=20
only to specify the program I want to use.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I have just upgraded to Feb 2001 =
version, and the=20
install program appears to have automatically associated .hs files with =
hugs.exe=20
(the ms-dos style one) and I cannot change it. If I specify the winhugs =
(or even=20
Notepad) should be always used to open .hs files, hugs.exe still does=20
it.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any help would be really =
appreciated.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Alex</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:pepeg@lcc.uma.es" title=3Dpepeg@lcc.uma.es>Pepe =
Gallardo</A>=20
  </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
href=3D"mailto:ajs300m@doc.ic.ac.uk"=20
  title=3Dajs300m@doc.ic.ac.uk>Alex Summers</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A=20
  href=3D"mailto:hugs-bugs@haskell.org"=20
  title=3Dhugs-bugs@haskell.org>hugs-bugs@haskell.org</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Friday, June 15, 2001 =
11:55=20
AM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: File associations =
with hugs=20
  98 for windows</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=3DArial size=3D2>Which version of hugs are you using? =
I use the=20
  last 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" =

  "%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=20
    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=20
    Windows (previously was using the MSDOS version). In general it =
works fine=20
    and contains lots of useful features. However, in contrast to the =
MSDOS=20
    version, if I associate .hs files with hugs98 for windows, and then =
attempt=20
    to open them directly (double-clicking on the script file) then it =
fails=20
    with an error 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=20
    </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),=20
    as WordPad accepts the filename correctly. But any attempt to load =
it at the=20
    hugs prompt fails, and I have to remove it from the script manager =
and then=20
    add it manually. In the script manager the filename has a single set =
of=20
    double quotes, which script files (e.g. the prelude) do not normally =
have=20
    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></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0013_01C0F59E.E5B11700--