[GHC] #8163: ghc.exe: panic! (the 'impossible' happened)

#8163: ghc.exe: panic! (the 'impossible' happened) ------------------------------------+--------------------------------- Reporter: CodeGuru | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Keywords: | Operating System: Windows Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+--------------------------------- When compiling an example from ''Real World Haskell'', I get the following error message: {{{ Prelude> :l Prettify.hs [2 of 2] Compiling Prettify ( Prettify.hs, interpreted ) ghc.exe: panic! (the 'impossible' happened) (GHC version 7.4.2 for i386-unknown-mingw32): nameModule show{tv apB} Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug > }}} The example contains simple function stubs which are used by another module: {{{ module Prettify ( string , text , double ) where import SimpleJSON data Doc = ToBeDefined deriving (show) string :: String -> Doc string str = undefined text :: String -> Doc text str = undefined double :: Double -> Doc double num = undefined }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8163 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8163: ghc.exe: panic! (the 'impossible' happened) ---------------------------------------+----------------------------------- Reporter: CodeGuru | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by CodeGuru): * failure: None/Unknown => Compile-time crash -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8163#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8163: ghc.exe: panic! (the 'impossible' happened) ---------------------------------------+----------------------------------- Reporter: CodeGuru | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.4.2 Resolution: duplicate | Keywords: Operating System: Windows | Architecture: Type of failure: Compile-time crash | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ---------------------------------------+----------------------------------- Changes (by monoidal): * status: new => closed * resolution: => duplicate Comment: This is a known error, it should be `deriving (Show)`. It is fixed in GHC 7.6; see #5961 and [[ReportABug]]. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8163#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC