ghci panic

2002-01-26 Thread Antony Courtney
Hi, I got the following panic message when trying to load haven into ghci, and the panic message said that I should report the problem, so here you go. :) I am using ghc 5.02.1 under Windows 2000 / Cygwin. I'd really like to be able to use ghci for Haven development, so any ideas on what

Re: ghci panic

2002-01-26 Thread Sigbjorn Finne
Antony Courtney [EMAIL PROTECTED] writes: ... Skipping HavenTest( HavenTest.hs, ./HavenTest.o ) PEi386 object has suspiciously large string table; 64k relocs? ghc.exe: panic! (the `impossible' happened, GHC version 5.02.1): loadObj: failed Hi, this is a known issue

ghci panic (unknown symbol stg_gc_l1)

2002-01-26 Thread Pixel
% ghci [...] Loading package std ... linking ... /usr/lib/ghc-5.02.2/HSstd.o: unknown symbol `stg_gc_l1' ghc-5.02.2: panic! (the `impossible' happened, GHC version 5.02.2): can't load package `std' [...] (it seems) it should load package rts before std, but (it seems) it doesn't: %

Re: ghci panic (unknown symbol stg_gc_l1)

2002-01-26 Thread Sigbjorn Finne
Hi, GHCi doesn't load the RTS package (nor GMP), as they're both baked into the binary. My guess is that you've built ghci using 5.02.1; you need to use 5.02.2 (i.e., do two stage build.) The missing symbol was introduced in 5.02.2's RTS. hth --sigbjorn - Original Message - From:

Re: ghci panic (unknown symbol stg_gc_l1)

2002-01-26 Thread Pixel
Sigbjorn Finne [EMAIL PROTECTED] writes: GHCi doesn't load the RTS package (nor GMP), as they're both baked into the binary. My guess is that you've built ghci using 5.02.1; you need to use 5.02.2 (i.e., do two stage build.) The missing symbol was introduced in 5.02.2's RTS. cool,

#s causing errors when -cpp not given

2002-01-26 Thread Ian Lynagh
Hi all I've just been looking at using cpp in Haskell scripts and I am rather confused. I can't see anything in the report which gives special meaning to # in the surrounding text of literate scripts, yet if I put such things in (both cpp directives and random things) both nhc98 and ghc give me

Random questions after a long haskell coding day

2002-01-26 Thread Jorge Adriano
Am I the only one who'd like to have some the function specified by scan_and_fold f e xs= (scanl f e xs, foldl f e xs) In the Lists library. Or is it there somewhere and I missed it? What about: pair (f,g) x = (f x, g x) cross (f, g) = pair(f.fst, g.snd) I kind of like point free style.

Re: Random questions after a long haskell coding day

2002-01-26 Thread Hal Daume III
For your last question (about reduction to hnf), use the attached code; search the haskell mailing list for deepseq for more. -- Hal Daume III Computer science is no more about computers| [EMAIL PROTECTED] than astronomy is about telescopes. -Dijkstra | www.isi.edu/~hdaume On Sun, 27