[GHC] #14607: Core Lint error

GHC ghc-devs at haskell.org
Sat Dec 23 15:09:51 UTC 2017


#14607: Core Lint error
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:  TypeInType,
                                     |  DeferredTypeErrors
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #14605 #14584     |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by monoidal):

 Small simplification:

 {{{
 #!hs
 {-# Language GADTs #-}
 {-# Language InstanceSigs #-}
 {-# Language KindSignatures #-}
 {-# Language TypeFamilies #-}
 {-# Language DataKinds #-}
 {-# Language FlexibleInstances #-}

 import Data.Kind

 data LamCons :: Type -> Type -> () -> Type where
   C :: LamCons a a '()

 class Mk a where
   mk :: LamCons a a '()

 instance Mk a where
   mk :: LamCons a '()
   mk = mk
 }}}

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


More information about the ghc-tickets mailing list