Hello People
One problem:
> main = putStrLn "Foo \
> \mar"
Doesn't compile with: ghc -c -cpp Main.lhs
Main.lhs:5:23: Illegal string escape: `\m'
Main.lhs:5:23: on input: "m"
The cpp seems to be doing something nasty, perhaps hoisting the second
line and eliminating the first slash?
One suggestion:
---------------
I have just spent an hour tracking down a rather silly "undefined".
Whenever I ran my program, bam: undefined.
Could we perhaps change the GHC implementation, (and perhaps the
standard) on the following:
Page 23 of the report says "Fields not mentioned are initialized to
\bottom" on the subject of Datatypes with Field label.
:-(
Perhaps, we can implement bottom with
> error "Fieldname foobar not initialised"
instead of
> undefined
It would make the language a little friendlier.
Thanks,
Jon