#3622: ghci ignores LANGUAGE TemplateHaskell pragma
-----------------------------+----------------------------------------------
Reporter:  fasta             |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  6.10.4            |       Severity:  normal          
Keywords:                    |       Testcase:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-----------------------------+----------------------------------------------
 Save the following in Foo.hs
 {{{
 {-# LANGUAGE TemplateHaskell #-}
 import Language.Haskell.TH.Syntax
 }}}

 {{{$ ghci Foo.hs}}}

 Paste runQ  [| (\x y -> compare x y == EQ) |] in ghci and press enter

 Instead of getting a useful result, I get an error.

 If I explicitly load TH on the command line, it does work.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3622>
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