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 -----
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 -----
To:    
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 :
 
ERROR ""C:\HaskellProject\HaskellProject(alex-new).hs"": Unable to open file
""C:\HaskellProject\HaskellProject(alex-new).hs"" 
 
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

Reply via email to