nhc98 and Win32



About this list Date view Thread view Subject view Author view

Malcolm Wallace (malcolm-nhc@cs.york.ac.uk)
Mon, 19 Jun 2000 13:52:41 +0100


> 1. which() in the confhc script does not handle paths with spaces > (important on Windows). Good catch. Thanks for the fix. > 2. Even though this which() finds nhc98 in /usr/local/bin, > NHC98DIR=`grep NHC98INCDIR ${whichNHC} | grep ${up2_NHC} | ... > fails on my system because there is no NHC98INCDIR variable. I'm puzzled - the file /usr/local/bin/nhc98 doesn't contain a line like NHC98INCDIR=/usr/local/.... ? Maybe when you installed that version of nhc98, you asked for the include/interface files to be located somewhere else, not under /usr/local? > 4. While making the trace runtime: > dump.c: In function `prGraph': > dump.c:248: too many arguments to function `setjmp' Ok, will investigate. > 5. Using hi to load a small program: > > Type :? for help > [Std module... /usr/local/include/nhc98/Prelude.hi] > Prelude> Main > [Compiling... > ==================================== > Error when renaming:: > Constructor Main used at 8:21 is not defined. (in overlap resolution) > ...failed] > Prelude> :q > [Leaving hmake interactive...] > BASH.EXE-2.04$ cat Main.hs > main = putStr "Hello world!\n" This is correct behaviour! You asked for the evaluation of an expression "Main", which indeed doesn't exist. Try loading the module Main with :load Main then asking for the expression "main"! Don't forget, this new interface is deliberately rather like Hugs. You can try other expressions directly at the prompt as well: Prelude> putStrLn "hello" hello Prelude> "hello" "hello" Prelude> sum [1..100] 5050 Regards, Malcolm


About this list Date view Thread view Subject view Author view