RE: Scanner Bugs

1999-06-14 Thread Simon Marlow
> The new GHC lexer contains some small bugs: > > -- Foo.hs > module Foo where > forall :: Int > forall = 1 > -- Main.hs --- > import Foo > main :: IO () > main = print forall > -

RE: Modules with empty export lists

1999-06-14 Thread Simon Peyton-Jones
> The following code produces: > > MTest.lhs:2:10: parse error on input: ")" > > > although this should be perfectly ok... consider a module > that just imports instance declarations... Quite right. And it works with the new parser. Simon

Scanner Bugs

1999-06-14 Thread Sven Panne
The new GHC lexer contains some small bugs: -- Foo.hs module Foo where forall :: Int forall = 1 -- Main.hs --- import Foo main :: IO () main = print forall

RE: Non-exhaustive patterns in function provSrcLoc

1999-06-14 Thread Simon Peyton-Jones
> Yes, I know, the following code snippets are wrong, because > instances are > always imported. The compiler yields an error message, like it should: > > > Foo1.lhs:2: > Duplicate or overlapping instance declarations > for `Read FooData' > Name.lhs:382: Non-exhaustive patterns

Compiling GHC 4.02 using the *.hc files on RedHat 6.0 Linux

1999-06-14 Thread Jose Romildo Malaquias
In the processing of compiling GHC 4.02 using the *.hc files recently made available, in a RedHat 6.0 (glibc 2.1, egcs 1.1.2), I have executed the commands: $ cd /var/tmp $ tar -zxf /urano/downloads/haskell/ghc/ghc-4.02-src.tar.gz $ cd fptools $ tar -zxf /urano/dow