id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
7118	Comments of curly bracket form, which appear at the end of type deffinitions confuse GHC	timthelion	pcapriotti	"
{{{

$ cat HaskarrowHelloWorld.broken.hs
main :: IO (){-# LINE 8 """" #-}
main = print ""Hi""
[timothy@timothy rewrite]$ ghc HaskarrowHelloWorld.broken.hs 
[1 of 1] Compiling Main             ( HaskarrowHelloWorld.broken.hs, HaskarrowHelloWorld.broken.o )
ghc: panic! (the 'impossible' happened)
  (GHC version 7.4.2 for x86_64-unknown-linux):
	Prelude.head: empty list

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

[timothy@timothy rewrite]$ 
$ ghc HaskarrowHelloWorld.working.hs 
[1 of 1] Compiling Main             ( HaskarrowHelloWorld.working.hs, HaskarrowHelloWorld.working.o )
Linking HaskarrowHelloWorld.working ...
[timothy@timothy rewrite]$ cat HaskarrowHelloWorld.working.hs
main :: IO ()--{-# LINE 8 """" #-}
main = print ""Hi""
[timothy@timothy rewrite]$ ./HaskarrowHelloWorld.working 
""Hi""

}}}
"	bug	closed	normal		Compiler	7.4.2	fixed		patrick@…	Unknown/Multiple	Unknown/Multiple	Compile-time crash	Unknown	T7118			
