GHCi-5.04.2: Windows Open with ... problem.

Calle Lejdfors calle.lejdfors@cs.lth.se
Tue, 11 Feb 2003 11:02:30 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0029_01C2D1BD.122C1C20
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello.

I am having a problem using the Open with ... on haskell-files under =
WinXP. The problem is this:  create a file on my desktop and then =
right-click and try to open it using Open with -> ghci. I get the =
following error message:

can't find module `C:\Documents' (while processing "C:\\Documents")

Obviously GHCi incorrectly handles white space in the path. If I run =
under Cygwin I can use a script like:

c:\\ghc\\ghc-5.04.2\\bin\\ghci `cygpath -d $1`;

But how do I solve this if I'm not using cygwin?=20

Thanks, Calle
------=_NextPart_000_0029_01C2D1BD.122C1C20
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New" size=3D2>Hello.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New"><FONT size=3D2>I am having a problem =
using the Open=20
with ... on haskell-files under WinXP. The problem is this: </FONT><FONT =
size=3D2>=20
create a file on my desktop and then right-click and try to open it =
using Open=20
with -&gt; ghci. I get the following error message:</FONT></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>can't find module =
`C:\Documents' (while=20
processing "C:\\Documents")</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Obviously GHCi incorrectly =
handles white=20
space in the path. If I run under Cygwin&nbsp;I can use a script=20
like:</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>c:\\ghc\\ghc-5.04.2\\bin\\ghci `cygpath =
-d=20
$1`;<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But how do I solve this if I'm not =
using cygwin?=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks, =
Calle</DIV></FONT></BODY></HTML>

------=_NextPart_000_0029_01C2D1BD.122C1C20--