Re: GHC 3.02 bugs

1998-06-01 Thread Sigbjorn Finne
When compiling the latest Green Card (290598) with -O, ghc-3.02 fails with an internal error: [...] ghc-3.02 -O -recomp-c FillIn.lhs -o FillIn.o ClosureInfo.lhs:1128: Non-exhaustive patterns in case The work-around suggested of compiling with -Onot should work fine, but

As always: Green Card bugs...

1998-06-01 Thread Sven Panne
The first one is not a severe bug, but nevertheless: When using declare, Green Card omits a C type cast. Consider the following (silly) GC spec: -- module Cast where import StdDIS newtype Foo = B Word32 %dis foo b = B (declare {FILE*} b in

Re: syslib imports with ghc-3.x

1998-06-01 Thread Sigbjorn Finne
David J King writes: Hi, Congrats to the SAS for ghc-3.02, I had no problem installing it :-) One problem I have had though is getting it to find some interface files. I get the following with a simple prog that does an import Parallel % ghc-3.02 -c -gransim -fvia-C -fhaskell-1.3

syslib imports with ghc-3.x

1998-06-01 Thread David J King
Hi, Congrats to the SAS for ghc-3.02, I had no problem installing it :-) One problem I have had though is getting it to find some interface files. I get the following with a simple prog that does an import Parallel % ghc-3.02 -c -gransim -fvia-C -fhaskell-1.3 -fglasgow-exts Main.lhs

data or class inheritance

1998-06-01 Thread S. Alexander Jacobson
I have a base class,Organization, with name and address functions. I want classes Buyer and Seller from Organization. Now if I want to create an 2 instances of Seller data Yahoo = Yahoo instance Organization Yahoo where name _= "Yahoo" addreess = ... data DoubleClick= DoubleClick