Newbie Question on Setting the GHC Search Path

Please pardon this intrusion for an elementary question on setting the GHC search path. I have installed GHC on my work Windows XP machine, and would like to be able to search for files in the following directory: D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC However, when I type the following command into the GHC interpreter: :cd "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" I get the following error message: *** Exception: "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC": setCurrentDirectory: invalid argument (Invalid argument) Yet, for testing purposes, when I type the following command: :cd cygwin I do not get any error message. There seems to be a problem with the spaces in the filename. However, I would like to be able to use the "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" directory for GHC programming practice, because I keep my practice work for my other programming languages in the same super-super-directory. Does anybody know a way to specify "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" as a directory in the search path for GHC? Benjamin L. Russell

One factor that is slightly unusual about this
phenomenon is that it only occurs with GHC, but not
with Hugs 98. Typing
:cd "D:\From C Drive\Documents and
Settings\DekuDekuplex\Programming
Practice\Haskell\GHC"
in Hugs 98 does not cause an error, but typing the
same command in GHC does. It seems that Hugs 98
allows spaces in filenames/paths, but GHC doesn't.
Is there any way to configure GHC so that it accepts
the same type of filenames/paths as Hugs 98?
Benjamin L. Russell
--- "Benjamin L. Russell"
Please pardon this intrusion for an elementary question on setting the GHC search path.
I have installed GHC on my work Windows XP machine, and would like to be able to search for files in the following directory:
D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC
However, when I type the following command into the GHC interpreter:
:cd "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC"
I get the following error message:
*** Exception: "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC": setCurrentDirectory: invalid argument (Invalid argument)
Yet, for testing purposes, when I type the following command:
:cd cygwin
I do not get any error message.
There seems to be a problem with the spaces in the filename. However, I would like to be able to use the "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" directory for GHC programming practice, because I keep my practice work for my other programming languages in the same super-super-directory.
Does anybody know a way to specify "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" as a directory in the search path for GHC?
Benjamin L. Russell _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Mon, Oct 29, 2007 at 04:25:45AM -0700, Benjamin L. Russell wrote:
One factor that is slightly unusual about this phenomenon is that it only occurs with GHC, but not with Hugs 98. Typing
:cd "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC"
Are you sure it has anything to do with spaces? Exactly one of your test paths has backslashes, and it's not the working one. Stefan

In GHC it works without the " and don't work with them:
Prelude> :cd C:\Documents and Settings
Prelude> :! pwd
C:\Documents and Settings
Olivier.
On 10/29/07, Benjamin L. Russell
Please pardon this intrusion for an elementary question on setting the GHC search path.
I have installed GHC on my work Windows XP machine, and would like to be able to search for files in the following directory:
D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC
However, when I type the following command into the GHC interpreter:
:cd "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC"
I get the following error message:
*** Exception: "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC": setCurrentDirectory: invalid argument (Invalid argument)
Yet, for testing purposes, when I type the following command:
:cd cygwin
I do not get any error message.
There seems to be a problem with the spaces in the filename. However, I would like to be able to use the "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" directory for GHC programming practice, because I keep my practice work for my other programming languages in the same super-super-directory.
Does anybody know a way to specify "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" as a directory in the search path for GHC?
Benjamin L. Russell _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

You're right; it works without the double-quotes.
Problem solved. Thanks!
Benjamin L. Russell
--- Olivier Boudry
In GHC it works without the " and don't work with them:
Prelude> :cd C:\Documents and Settings Prelude> :! pwd C:\Documents and Settings
Olivier.
On 10/29/07, Benjamin L. Russell
wrote: Please pardon this intrusion for an elementary question on setting the GHC search path.
I have installed GHC on my work Windows XP
and would like to be able to search for files in
following directory:
D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC
However, when I type the following command into
GHC interpreter:
:cd "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC"
I get the following error message:
*** Exception: "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC": setCurrentDirectory: invalid argument (Invalid argument)
Yet, for testing purposes, when I type the following command:
:cd cygwin
I do not get any error message.
There seems to be a problem with the spaces in the filename. However, I would like to be able to use
"D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" directory for GHC
machine, the the the programming
practice, because I keep my practice work for my other programming languages in the same super-super-directory.
Does anybody know a way to specify "D:\From C Drive\Documents and Settings\DekuDekuplex\Programming Practice\Haskell\GHC" as a directory in the search path for GHC?
Benjamin L. Russell _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Benjamin L. Russell
-
Olivier Boudry
-
Stefan O'Rear