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