#6141: ghc: panic! (the 'impossible' happened)
---------------------------------------+------------------------------------
 Reporter:  aSect                      |          Owner:                
     Type:  bug                        |         Status:  new           
 Priority:  normal                     |      Component:  Compiler      
  Version:  7.4.1                      |       Keywords:                
       Os:  Linux                      |   Architecture:  x86_64 (amd64)
  Failure:  GHC rejects valid program  |       Testcase:                
Blockedby:                             |       Blocking:                
  Related:                             |  
---------------------------------------+------------------------------------
 i tried to load the following code in ghci:

 {-# OPTIONS_GHC -Wall -O2 #-}

 module Main where

 import Data.Map (Map)
 import qualified Data.Map as Map

 data Vertex a
    = Vertex { vname :: a }
    deriving (Show, Read, Eq)

 data Edge a
    = Edge { xedge :: a
           , yedge :: a }
    deriving (Show, Read, Eq)

 data Graph a
    = Graph { vertexes  :: [Vertex a]
            , edges     :: [Edge a]
            , adjacents :: Vertex a -> [Vertex a]
            } deriving (show, Read, Eq)


 and then i got the following error:

 ghc: panic! (the 'impossible' happened)
   (GHC version 7.4.1 for x86_64-unknown-linux):
         nameModule show{tv a25N}

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