RE: Bugs

2001-10-23 Thread Simon Marlow
bash-2.03$ ghc --make Main.hs -o game ghc-5.00.2: chasing modules from: Main.hs Compiling GameWorld( GameWorld.hs, GameWorld.o ) Compiling GameMessages ( GameMessages.hs, GameMessages.o ) Compiling GameFrontEnd ( GameFrontEnd.hs, GameFrontEnd.o ) ghc-5.00.2: panic! (the

Building GHC 5.02 on Solaris x86

2001-10-23 Thread Ian Lynagh
I am trying to build GHC 5.02 on an x86 Solaris machine (with the x86 HC stuff) and I am getting this error: gcc -x c MArray.hc -o MArray.raw_s -S -O -fno-defer-pop -fomit-frame-pointer -DDONT_WANT_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=502 -O -I/tmp/foo/ghc-5.02/ghc/includes

RE: Building GHC 5.02 on Solaris x86

2001-10-23 Thread Simon Marlow
I am trying to build GHC 5.02 on an x86 Solaris machine (with the x86 HC stuff) and I am getting this error: gcc -x c MArray.hc -o MArray.raw_s -S -O -fno-defer-pop -fomit-frame-pointer -DDONT_WANT_WIN32_DLL_SUPPORT -D__GLASGOW_HASKELL__=502 -O

ghc misreports the error line

2001-10-23 Thread Sengan
module Test where chars = foo bar this line is in error and it is line 7 ghc test.lhs test.lhs:5: parse error on input `in' It turns out that in the script I am writing (semi-automatic generation of a grammar file) being able to use the above notation for multilined strings is much

Re: ghc misreports the error line

2001-10-23 Thread Ian Lynagh
On Tue, Oct 23, 2001 at 03:24:56PM -0400, Sengan wrote: module Test where chars = foo bar Try this instead: module Test where chars = \n\ \foo\n\ \bar Ian ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED]

problems with Array.elems in ghc-5.02

2001-10-23 Thread Bostjan Slivnik
Hi, I am afraid I have to report a bug in the Array module which is a part of ghc-5.02. Consider the following program: module Main where import Array import List data Foo = Foo Int [Foo] instance Eq Foo where (==)(Foo f1 _) (Foo f2 _) = (==)f1 f2 instance Ord

Re: problems with Array.elems in ghc-5.02

2001-10-23 Thread Marcin 'Qrczak' Kowalczyk
Tue, 23 Oct 2001 22:01:07 +0200, Bostjan Slivnik [EMAIL PROTECTED] pisze: instance Ix Foo where range (lo@(Foo _ foos),hi) = (filter ((=)lo).filter ((=)hi)) foos inRange (Foo lo _,Foo hi _) (Foo f _) = inRange (lo,hi) f index _ (Foo f _) = f This instance doesn't fulfill the

Re: Building GHC 5.02 on Solaris x86

2001-10-23 Thread Ian Lynagh
On Tue, Oct 23, 2001 at 02:10:52PM +0100, Simon Marlow wrote: I am trying to build GHC 5.02 on an x86 Solaris machine (with the x86 HC stuff) and I am getting this error: [...] You need to add the line MArray_HC_OPTS += -monly-3-regs to fptools/hslibs/lang/Makefile.

Re: Bugs

2001-10-23 Thread Manuel M. T. Chakravarty
Jimmy Ng [EMAIL PROTECTED] wrote, bash-2.03$ ghc --make Main.hs -o game ghc-5.00.2: chasing modules from: Main.hs Compiling GameWorld( GameWorld.hs, GameWorld.o ) Compiling GameMessages ( GameMessages.hs, GameMessages.o ) Compiling GameFrontEnd ( GameFrontEnd.hs,