[GHC] #14155: GHC mentions unlifted types out of the blue (to me anyway)

GHC ghc-devs at haskell.org
Thu Aug 24 23:23:39 UTC 2017


#14155: GHC mentions unlifted types out of the blue (to me anyway)
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      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):

 This feels similar

 {{{#!hs
 --    /tmp/bug.hs:6:12-20: error:
 --        • Couldn't match kind ‘*’ with ‘GHC.Types.RuntimeRep’
 --          When matching the kind of ‘'GHC.Types.LiftedRep’
 --        • In the first argument of ‘R’, namely ‘(m `ibind`)’
 --          In the expression: R (m `ibind`)
 --          In an equation for ‘lft’: lft m = R (m `ibind`)
 --      |
 --    6 | lft m = R (m `ibind`)
 --      |            ^^^^^^^^^
 --    Failed, modules loaded: none.

 newtype R a = R ((a -> a) -> a)

 class IxMonad m where
   ibind :: (a -> m j k b) -> m i j a -> m i k b

 lft m = R (m `ibind`)
 }}}

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


More information about the ghc-tickets mailing list