Re: [GHC] #7355: panic when bang is misplaced: tc_hs_type: bang

2012-10-22 Thread GHC
#7355: panic when bang is misplaced: tc_hs_type: bang
-+--
  Reporter:  elaforge|  Owner:  
  Type:  bug | Status:  closed  
  Priority:  normal  |  Milestone:  
 Component:  Compiler|Version:  7.6.1   
Resolution:  duplicate   |   Keywords:  
Os:  Unknown/Multiple|   Architecture:  Unknown/Multiple
   Failure:  Compile-time crash  | Difficulty:  Unknown 
  Testcase:  |  Blockedby:  
  Blocking:  |Related:  
-+--
Changes (by simonpj):

  * status:  new = closed
  * difficulty:  = Unknown
  * resolution:  = duplicate


Comment:

 Looks like a dup of #7210.  Please re-open if not.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7355#comment:1
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


[GHC] #7355: panic when bang is misplaced: tc_hs_type: bang

2012-10-20 Thread GHC
#7355: panic when bang is misplaced: tc_hs_type: bang
+---
 Reporter:  elaforge|  Owner:  
 Type:  bug | Status:  new 
 Priority:  normal  |  Component:  Compiler
  Version:  7.6.1   |   Keywords:  
   Os:  Unknown/Multiple|   Architecture:  Unknown/Multiple
  Failure:  Compile-time crash  |   Testcase:  
Blockedby:  |   Blocking:  
  Related:  |  
+---
 The following file makes ghc panic:

 % cat t.hs

 newtype Scale = Scale (!Maybe Int)

 % ghc -c t.hs

 ghc: panic! (the 'impossible' happened)
   (GHC version 7.6.1 for x86_64-apple-darwin):
 tc_hs_type: bang

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


 I should have written 'Scale (!(Maybe Int))', but ghc should tell me so
 instead of crashing.
 Actually, come to think of it, why isn't '!Maybe Int' valid if it has no
 possible interpretation other than '!(Maybe Int)'?

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7355
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