[GHC] #11669: Incorrectly suggests RankNTypes for ill-formed type "forall a. Eq a. Int"
GHC
ghc-devs at haskell.org
Sun Jul 31 10:10:51 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
(Parser) |
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect | Unknown/Multiple
warning at compile-time | Test Case:
Blocked By: | Blocking:
Related Tickets: #3155 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by jstolarek):
Thomie, I am a bit puzzled by your comment. I think that the signature
`foo :: forall a. Eq a. Int` is incorrect (even with `ExplicitForAll` or
`RankNTypes`) and should be simply rejected with a parse error. Or am I
missing something?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11669#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list