logo       

slightly incorrect error message: msg#00024

lang.haskell.glasgow.bugs

Subject: slightly incorrect error message

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@xxxxxxx
"Arrest this man, he talks in maths." | www.isi.edu/~hdaume


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise