Incorrectly suggests RankNTypes for ill-formed type "forall a. Eq a. Int"
baldur@Loki:~$ ghci -ignore-dot-ghci
GHCi, version 8.1.20160117: http://www.haskell.org/ghc/ :? for help
Prelude> let foo :: forall a. Eq a. Int; foo = undefined
<interactive>:1:20: error:
Illegal symbol '.' in type
Perhaps you intended to use RankNTypes or a similar language
extension to enable explicit-forall syntax: forall <tvs>. <type>
Prelude> :set -XRankNTypes
Prelude> let foo :: forall a. Eq a. Int; foo = undefined
<interactive>:3:26: error:
Illegal symbol '.' in type
Perhaps you intended to use RankNTypes or a similar language
extension to enable explicit-forall syntax: forall <tvs>. <type>
Prelude>
also
Prelude> :kind forall a. Eq a. Int
<interactive>:1:15: error:
Illegal symbol '.' in type
Perhaps you intended to use RankNTypes or a similar language
extension to enable explicit-forall syntax: forall <tvs>. <type>
Trac metadata
Trac field | Value |
---|---|
Version | 8.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |