RE: GHCi-5.04.2: Windows Open with ... problem.
Will this release include the -odir fix (the one for hiearchical names)? I'm afraid not. That part of the compiler has changed a lot relative to the 5.04.x branch, the fix is non-trivial, and I don't feel confident making that kind of change at this stage of the release cycle. Better the devil you know. Using make instead of --make, and explicit -o options instead of -odir, should let you workaround the problem. Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: GHCi-5.04.2: Windows Open with ... problem.
fre 2003-02-14 klockan 09.41 skrev Simon Peyton-Jones: Weÿll merge the fix into the 5.04 branch. Weÿre planning another 5.04 release (5.04.4), which has numerous small fixes, sometime ´soon¡, but exactly when depends on demand. When would you need it for your course? Will this release include the -odir fix (the one for hiearchical names)? We are having problems in a particular case: We are building a program which contains of a number of haskell files, and a C wrapper that calls the haskell functions. When compiling the haskell files header files are generated, which are needed to compile the C wrapper. We do this something like this ghc --make Module.hs -odir lib gcc -c wrapper.c ghc wrapper.o odir/*.o Do we have to wait for a version that does -odir correctly, or is there a better way to do this? The problem is that if we compile without -odir the object files are generated where the source files are, and those directories (it's our custom haskell libraries) include a lot of source and object files that should not be part of this program. Regards, Martin -- Martin Norbäck [EMAIL PROTECTED] Kapplandsgatan 40 +46 (0)708 26 33 60 S-414 78 GÖTEBORG http://www.dtek.chalmers.se/~d95mback/ SWEDEN OpenPGP ID: 3FA8580B ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: GHCi-5.04.2: Windows Open with ... problem.
Hi Thanks for the answer. It appears as if XP calls ghci via "p::\ath\to\ghci" "c:\Documents and Settings\foo\" i.e. with quotes. Trying to start ghci via cygwin using any of $ ghci Test\ with\ spaces/Test.lhs $ ghci Test\ with\ spaces\\Test.lhs $ ghci "Test with space/Test.lhs" $ ghci "Test with space\\Test.lhs" will give the error: can't find module `Test' (while processing "Test") Testing $ ghci Test\ with\ spaces/Test.lhs $ ghci "Test with space/Test.lhs" under Linux gives the same error. Hence there seem to be something strange about pathnames containing spaces under GHCi. However trying the same thing under GHC works like a charm under both cygwin and Linux. Any ideas? /Calle - Original Message - From: Sigbjorn Finne To: Calle Lejdfors Cc: [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 3:19 PM Subject: Re: GHCi-5.04.2: Windows Open with ... problem. Hi thee, this is most likely due to the XP shell invoking 'ghci' as follows: p:\ath\to\ghci c:\Documents and Settings\foo\ which makes it look as if multiple arguments are given on the command-line (indeed, that's what the argv vector will contain.) The registered file assocations for .hs and .lhs takes care of quoting the filename argument, so I'm not sure this is worth fixing. --sigbjorn Enterprising souls may want to have a look at the Registry key HKEY_CLASSES_ROOT\Unknown\shell\openas\command and look at how the %1 arg is quoted (or not) - Original Message - From: Calle Lejdfors To: [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 02:02 Subject: GHCi-5.04.2: Windows Open with ... problem. 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 CygwinI 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? Thanks, Calle
GHCi-5.04.2: Windows Open with ... problem.
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 CygwinI 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? Thanks, Calle
Re: GHCi-5.04.2: Windows Open with ... problem.
Hi thee, this is most likely due to the XP shell invoking 'ghci' as follows: p:\ath\to\ghci c:\Documents and Settings\foo\ which makes it look as if multiple arguments are given on the command-line (indeed, that's what the argv vector will contain.) The registered file assocations for .hs and .lhs takes care of quoting the filename argument, so I'm not sure this is worth fixing. --sigbjorn Enterprising souls may want to have a look at the Registry key HKEY_CLASSES_ROOT\Unknown\shell\openas\command and look at how the %1 arg is quoted (or not) - Original Message - From: Calle Lejdfors To: [EMAIL PROTECTED] Sent: Tuesday, February 11, 2003 02:02 Subject: GHCi-5.04.2: Windows Open with ... problem. 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 CygwinI 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? Thanks, Calle