[GHC] #7078: Panic using mixing list with parallel arrays incorrectly (was: Requested to report bug as below.)

GHC cvs-ghc at haskell.org
Mon Jul 16 20:48:13 CEST 2012


#7078: Panic using mixing list with parallel arrays incorrectly
-------------------------+--------------------------------------------------
    Reporter:  NeilJ     |       Owner:  chak              
        Type:  bug       |      Status:  new               
    Priority:  normal    |   Milestone:                    
   Component:  Compiler  |     Version:  7.4.1             
    Keywords:            |          Os:  Unknown/Multiple  
Architecture:  x86       |     Failure:  Compile-time crash
  Difficulty:  Unknown   |    Testcase:                    
   Blockedby:            |    Blocking:                    
     Related:            |  
-------------------------+--------------------------------------------------
Changes (by chak):

  * failure:  GHC rejects valid program => Compile-time crash


Comment:

 GHC shouldn't panic, but instead give a proper error message, but the
 definition of transpose in Handy.hs is incorrect. It uses list pattern
 matching with `(:)` for parallel arrays. That is impossible as they are
 not inductively defined.

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



More information about the Glasgow-haskell-bugs mailing list