[Haskell-cafe] Newbie Question on Setting the GHC Search Path

Olivier Boudry olivier.boudry at gmail.com
Mon Oct 29 12:32:19 EDT 2007


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 <dekudekuplex at yahoo.com> wrote:
>
> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071029/48286e45/attachment.htm


More information about the Haskell-Cafe mailing list