#3450: Parser error on
---------------------+------------------------------------------------------
Reporter:  monoidal  |          Owner:                   
    Type:  bug       |         Status:  new              
Priority:  normal    |      Component:  Compiler (Parser)
 Version:  6.10.4    |       Severity:  normal           
Keywords:            |       Testcase:                   
      Os:  Linux     |   Architecture:  Unknown/Multiple 
---------------------+------------------------------------------------------
 Create a single-line file x.hs with contents

 {-# LANGUAGE -FlexibleInstances #-}

 And run ghci x.hs.

 GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
 Loading package ghc-prim ... linking ... done.
 Loading package integer ... linking ... done.
 Loading package base ... linking ... done.
 ghc: panic! (the 'impossible' happened)
   (GHC version 6.10.4 for i386-unknown-linux):
         getOptions'.parseLanguage(2) went past eof token

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



 If the dash is removed,
 {-# LANGUAGE FlexibleInstances #-}
 the file parses properly.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3450>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to