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
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
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
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
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