slightly incorrect error message
Hal Daume III
hdaume at ISI.EDU
Fri Apr 11 11:53:18 EDT 2003
8:51am moussor:ResUsage/ cat > Foo.hs
foo s
| [a,a] <- s = Nothing
8:52am moussor:ResUsage/ ghc Foo.hs
Foo.hs:1: No 'main' defined in module Main
Foo.hs:2:
Conflicting definitions for `a'
In a pattern in 'do' binding
should really not mention "do". The last line should probably read "In a
pattern in a guard".
--
Hal Daume III | hdaume at isi.edu
"Arrest this man, he talks in maths." | www.isi.edu/~hdaume
More information about the Glasgow-haskell-bugs
mailing list