[GHC] #7331: Allow the evaluation of declaration splices in GHCi

GHC cvs-ghc at haskell.org
Mon Oct 15 05:48:36 CEST 2012


#7331: Allow the evaluation of declaration splices in GHCi
------------------------------+---------------------------------------------
 Reporter:  parcs             |          Owner:                  
     Type:  feature request   |         Status:  new             
 Priority:  normal            |      Component:  GHCi            
  Version:  7.6.1             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 As it stands GHCi cannot evaluate declaration splices because all splices
 are assumed to be expression splices:

 {{{
 > $( [d| a = True |] )
 <interactive>:1:4:
     Couldn't match expected type `Language.Haskell.TH.Syntax.Exp'
                 with actual type `[Language.Haskell.TH.Syntax.Dec]'
 ...
 }}}

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



More information about the Glasgow-haskell-bugs mailing list