Skip to content

panic - caused by language pragma closed in first column

if the language pragma is closed on a new line panic breaks out. adding two spaces before the #-} is sufficient to compile.

used 6.10.4 on ubuntu 9.04

here the output and the program:

frank@atlantaJ:~/leksahworkspace/spaceTimeDuality$ ghc panic.hs ghc: panic! (the 'impossible' happened)

(GHC version 6.10.4 for i386-unknown-linux):

getOptions'.parseLanguage(1) went past eof token

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

the program is:

{-# LANGUAGE TypeSynonymInstances #-}

module SpaceTimeDuality where

main = do return ()

Trac metadata
Trac field Value
Version 6.10.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information