[GHC] #12811: GHC tells me to use RankNTypes when it's already enabled

GHC ghc-devs at haskell.org
Mon Nov 7 09:54:55 UTC 2016


#12811: GHC tells me to use RankNTypes when it's already enabled
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Poor/confusing    |  Unknown/Multiple
  error message                      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Yes indeed.  Perhaps someone can arrange to suppress the suggestion if
 `RankNTypes` is already on?  That would help a bit, by removing the
 confusing suggestion.

 But it's hard to come up with a good error message for
 {{{
 a b . c d
 }}}
 as a type.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12811#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list