[GHC] #11669: Incorrectly suggests RankNTypes for ill-formed type "forall a. Eq a. Int"
GHC
ghc-devs at haskell.org
Thu Mar 3 08:46:04 UTC 2016
#11669: Incorrectly suggests RankNTypes for ill-formed type "forall a. Eq a. Int"
-------------------------------------+-------------------------------------
Reporter: Iceland_jack | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
{{{
baldur at 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>
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11669>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list