[GHC] #9547: Empty constraint tuples are mis-kinded

GHC ghc-devs at haskell.org
Thu Oct 6 20:24:45 UTC 2016


#9547: Empty constraint tuples are mis-kinded
-------------------------------------+-------------------------------------
        Reporter:  simonpj           |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  7.8.2
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Iceland_jack):

 For the record, works if annotated:

 {{{#!hs
 import GHC.Exts

 foo :: If True (() :: Constraint) (Eq a) => a -> a
 foo = error "urk"
 }}}

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


More information about the ghc-tickets mailing list