#7118: Comments of curly bracket form, which appear at the end of type deffinitions confuse GHC --------------------------------+------------------------------------------- Reporter: timthelion | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.4.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Compile-time crash | Testcase: Blockedby: | Blocking: Related: | --------------------------------+------------------------------------------- {{{
$ 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" }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7118> 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