Uncertain if this is a bug in GHC

Mike Thomas miketh at brisbane.paradigmgeo.com
Mon Feb 11 21:52:15 EST 2002


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




More information about the Glasgow-haskell-bugs mailing list