RE: Internal Happy Error

1999-08-02 Thread Simon Marlow
The following ``code'' forces ghc-4.04 to crash with an internal Happy error message: module Rules where import GlaExts import PrelGHC integerGcd :: Integer - Integer - Integer integerGcd a b = case a of (S# a) - case b of (S# b) - unsafePerformIO

Re: ghc from CVS (1999/07/31) throws core...

1999-08-02 Thread Marc van Dongen
: Hi! : : I tried to recompile the latest ghc (1999/07/31) on a Linux/glibc2.1.1 : system (egcs 2.91.66), but there seems to be a problem: the build works, but : the resulting compiler produces executables, that throw core, even with : "main = return ()". I've noticed that as well. Code like

ghc from CVS (1999/07/31) throws core...

1999-08-02 Thread Michael Weber
Hi! I tried to recompile the latest ghc (1999/07/31) on a Linux/glibc2.1.1 system (egcs 2.91.66), but there seems to be a problem: the build works, but the resulting compiler produces executables, that throw core, even with "main = return ()". I have a CVS version from 1999/07/10, and this one

Instance declarations get lost from modules imported from absolute paths

1999-08-02 Thread George Russell
The attached tgz archive contains 4 files: A.hs defines a type X and a type class Y B.hs imports A and makes X an instance of Y C.hs imports B and just exports everything again D.hs imports C and tries to use the fact that X is an instance of Y. If you compile this using ghc -c

Internal Happy Error (another one)

1999-08-02 Thread Marc van Dongen
Hi there, ghc-4.04's parser does not seem to like expressions of the following kind: case a of (#I a) - and blah (# sa, a, #) Upon using these expressions it dies due to an internal Happy error. Hope this helps, Marc van Dongen

Re: ghc from CVS (1999/07/31) throws core...

1999-08-02 Thread Michael Weber
On Mon, Aug 02, 1999 at 12:54:23 +0100, Marc van Dongen wrote: [...] I've noticed that as well. Code like does not produce proper error messages anymore which it did with ghc-4.02. One wonders where the performance boost came from:-) $ cat tmp.lhs module Main( main ) where main =