[GHC] #11452: Typed Template Haskell sneakily allows impredicativity

GHC ghc-devs at haskell.org
Mon Jan 18 13:31:56 UTC 2016


#11452: Typed Template Haskell sneakily allows impredicativity
-------------------------------------+-------------------------------------
           Reporter:  goldfire       |             Owner:  goldfire
               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:
-------------------------------------+-------------------------------------
 The following module is accepted:

 {{{#!hs
 {-# LANGUAGE ExplicitForAll, TemplateHaskell #-}

 module Bug where

 impred :: forall a. a -> a
 impred = $$( [|| \x -> x ||] )
 }}}

 But that requires an intermediate `TExp (forall a. a -> a)`.

 Will fix in ongoing work.

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


More information about the ghc-tickets mailing list