#7210: Bang in front of type name crashes GHC
--------------------------------+-------------------------------------------
 Reporter:  tibbe               |          Owner:                  
     Type:  bug                 |         Status:  new             
 Priority:  normal              |      Component:  Compiler        
  Version:  7.6.1-rc1           |       Keywords:                  
       Os:  Unknown/Multiple    |   Architecture:  Unknown/Multiple
  Failure:  Compile-time crash  |       Testcase:                  
Blockedby:                      |       Blocking:                  
  Related:                      |  
--------------------------------+-------------------------------------------
 When adding a bang to a type constructor applied to a type, I forgot to
 surround it with parenthesis:

 {{{
 module Test where

 import Data.IntMap

 data T = C { f :: !IntMap Int }
 }}}

 leading to the following crash:

 {{{
 [1 of 1] Compiling Test             ( Control/Distributed/Hayride/Test.hs,
 interpreted )
 ghc: panic! (the 'impossible' happened)
   (GHC version 7.6.0.20120810 for x86_64-unknown-linux):
         tc_hs_type: bang

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

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to