[GHC] #11560: panic: isInjectiveTyCon sees a TcTyCon

GHC ghc-devs at haskell.org
Mon Feb 8 16:44:38 UTC 2016


#11560: panic: isInjectiveTyCon sees a TcTyCon
-------------------------------------+-------------------------------------
           Reporter:  rwbarton       |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.1
  (Type checker)                     |
           Keywords:                 |  Operating System:  Unknown/Multiple
       Architecture:                 |   Type of failure:  Compile-time
  Unknown/Multiple                   |  crash
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I typed this into ghci and it panicked. Not sure whether the declaration
 is really valid anyways, but ghci shouldn't panic on it.
 {{{
 rwbarton at morphism:~/ghc-newest$ ./inplace/bin/ghc-stage2 --interactive
 GHCi, version 8.1.20160201: http://www.haskell.org/ghc/  :? for help
 Prelude> :set -XTypeFamilies -XTypeInType
 Prelude> :m +Data.Kind
 Prelude Data.Kind> type family T (l :: *) (k :: l) :: * where { T * Int =
 * }
 ghc-stage2: panic! (the 'impossible' happened)
   (GHC version 8.1.20160201 for x86_64-unknown-linux):
         isInjectiveTyCon sees a TcTyCon T

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
 }}}

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


More information about the ghc-tickets mailing list