[GHC] #14162: Core Lint error

GHC ghc-devs at haskell.org
Mon Aug 28 09:19:55 UTC 2017


#14162: Core Lint error
-------------------------------------+-------------------------------------
        Reporter:  Iceland_jack      |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:  TypeInType
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 simonpj):

 Here's a simpler version
 {{{
 {-# Language TypeOperators, KindSignatures, DataKinds, PolyKinds,
 TypeFamilies, GADTs, TypeInType #-}

 module T14162 where

 import Data.Kind

 data SubList :: Maybe a -> Type where
   SubNil :: SubList 'Nothing

 data family Sing (a :: k)

 data instance Sing (x :: SubList ys) where
   SSubNil :: Sing SubNil
 }}}
 There's an ASSERT error in `substTy` too, if you compile with a -DDEBUG
 compiler

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


More information about the ghc-tickets mailing list