[GHC] #4181: Template Haskell + -fdicts-strict fails

GHC cvs-ghc at haskell.org
Thu Jul 8 16:02:59 EDT 2010


#4181: Template Haskell + -fdicts-strict fails
---------------------------------+------------------------------------------
    Reporter:  LouisWasserman    |       Owner:                                    
        Type:  bug               |      Status:  new                               
    Priority:  normal            |   Component:  Compiler                          
     Version:  6.12.3            |    Keywords:  template haskell strict dictionary
          Os:  Unknown/Multiple  |    Testcase:                                    
Architecture:  Unknown/Multiple  |     Failure:  Compile-time crash                
---------------------------------+------------------------------------------

Comment(by LouisWasserman):

 An even better example:

 {{{
 module Foo where

 import Language.Haskell.TH

 foo :: Q Exp
 foo = do
         x <- [| (>>=) |]
         return x

 foo2 :: Q Exp
 foo2 = [| (>>=) |]
 }}}

 Here, foo generates an absent arg, and foo2 is fine.  Craaaaazy.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4181#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list