Uncertain if this is a bug in GHC
Simon Peyton-Jones
simonpj at microsoft.com
Tue Feb 12 04:05:00 EST 2002
No, it's not a bug. --| is a perfectly good lexeme, not the
start of a comment.
Simon
| -----Original Message-----
| From: Mike Thomas [mailto:miketh at brisbane.paradigmgeo.com]
| Sent: 12 February 2002 02:52
| To: glasgow-haskell-bugs at haskell.org
| Subject: Uncertain if this is a bug in GHC
|
|
| Hi there.
|
| I am uncertain if the error message below from the code
| further below is a bug or not. Putting a space between the
| "--" and the "|" parses without
| error:
|
| -------------------------------------
| $ ghc -c test.hs
| test.hs:4: parse error on input `='
|
| -------------------------------------
| module Test where
| test a
| | a > 1 = 1
| --| a < 1 = 1
| | a = 1 = 0
|
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-| haskell-bugs
|
More information about the Glasgow-haskell-bugs
mailing list