Opened 18 months ago

Last modified 12 months ago

#7331 new feature request

Allow the evaluation of declaration splices in GHCi

Reported by: parcs Owned by:
Priority: normal Milestone: 7.8.3
Component: GHCi Version: 7.6.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:


As it stands GHCi cannot evaluate declaration splices because all splices are assumed to be expression splices:

> $( [d| a = True |] )
    Couldn't match expected type `Language.Haskell.TH.Syntax.Exp'
                with actual type `[Language.Haskell.TH.Syntax.Dec]'

Change History (1)

comment:1 Changed 12 months ago by igloo

  • Difficulty set to Unknown
  • Milestone set to 7.8.1

Thanks for the suggestion.

Note: See TracTickets for help on using tickets.