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'
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
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).
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
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
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