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