Error message, room for improvement
$ ghci -ignore-dot-ghci
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help
Prelude> :set -XPatternSynonyms
Prelude> :set -XViewPatterns
Prelude> pattern Foo a <- ((\uncons -> Just (a, as) -> a) -> a)
<interactive>:3:20: error:
Pattern syntax in expression context: \ uncons -> Just (a, as) -> a
Did you mean to enable TypeApplications?
Let's:
Prelude> :set -XTypeApplications
Prelude> pattern Foo a <- ((\uncons -> Just (a, as) -> a) -> a)
<interactive>:5:20: error:
Pattern syntax in expression context: \ uncons -> Just (a, as) -> a
Did you mean to enable TypeApplications?
Prelude>
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |