#6011: Panic when using a type synonym
--------------------------------+-------------------------------------------
 Reporter:  mm_freak            |          Owner:                
     Type:  bug                 |         Status:  new           
 Priority:  normal              |      Component:  Compiler      
  Version:  7.4.1               |       Keywords:                
       Os:  Linux               |   Architecture:  x86_64 (amd64)
  Failure:  Compile-time crash  |       Testcase:                
Blockedby:                      |       Blocking:                
  Related:                      |  
--------------------------------+-------------------------------------------
 I'm getting the following "the impossible happened" error when trying to
 compile the code in the attachment:

 {{{
 [2 of 3] Compiling Data.Mod.FiniteRing ( Data/Mod/FiniteRing.hs,
 dist/build/Data/Mod/FiniteRing.o )
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.4.1 for x86_64-unknown-linux):
         tyThingTyCon
     Data constructor `modular-0.1.0:Data.Mod.Types.FiniteRing{d r0}'
 }}}

 This only happens when I use the Mod type synonym.  When I spell the full
 GenMod type everything works fine.  Also the first compilation run after a
 "cabal clean" works fine.

 Steps to reproduce:

 1. Unpack the attached cabal package.
 2. Compile (cabal configure, cabal build).
 3. Touch Data/Mod/FiniteRing.hs.
 4. Compile again (cabal build).

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to