packages in ghci

2001-09-27 Thread Sven Eric Panitz
I just downloaded the nice installation of ghc 5.02 for windows. I have just some problem when trying to start ghci with a package as described in the manual: E:\hs\Quipghci -package text e:\PROGRA~1\ghc\ghc-5.02\bin\ghc.exe: no input files Usage: For basic information, try the `--help'

Re: packages in ghci

2001-09-27 Thread Reuben Thomas
I just downloaded the nice installation of ghc 5.02 for windows. I have just some problem when trying to start ghci with a package as described in the manual: E:\hs\Quipghci -package text Works fine for me. e:\PROGRA~1\ghc\ghc-5.02\bin\ghc.exe: no input files Usage: For basic

Exporting a String

2001-09-27 Thread Juan Ignacio García García
hello, Is there any way to export a value of type String? I have tried it as follows Haskell code foreign export f::Int - IO (StablePtr String) f:: Int - IO (StablePtr String) f n = newStablePtr (hola) C code char *cad; cad=f(5); printf(%s,cad); but it does not go (segmentation fault).

Re: More 5.02 downloads

2001-09-27 Thread Jon Fairbairn
I've updated the 5.02 Windows InstallShield, getting rid of one or two teething problems, and improving the availability of the docs. I've also added links to the RedHat 7.1 RPMs and FreeBSD/x86 binary dist. http://www.haskell.org/ghc/download_ghc_502.html I'm not sure who to mention

Why have file names with 3 components?

2001-09-27 Thread George Russell
This looks like a bug, but please don't change it! If you have a file A.blah.hs containing a module A, ghc5.02 compiles it, producing A.hi and A.blah.o. I have an application for this, since I have just, for the first time, been reluctantly compelled to introduce recursive modules. Rather

Re: Exporting a String

2001-09-27 Thread Sven Eric Panitz
I am no expert in these things, but as a matter of fact I just did some quite similar and found the help in the mailing list archive. (at least I did not find a cookbook for this in the documentation) My Haskell module: == module Mini where import CString foreign export