Opened 3 years ago

Last modified 8 months ago

#7331 new feature request

Allow the evaluation of declaration splices in GHCi

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

Description

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]'
...

Change History (3)

comment:1 Changed 2 years ago by igloo

  • difficulty set to Unknown
  • Milestone set to 7.8.1

Thanks for the suggestion.

comment:2 Changed 16 months ago by thoughtpolice

  • Milestone changed from 7.8.3 to 7.10.1

Moving to 7.10.1

comment:3 Changed 8 months ago by thoughtpolice

  • Milestone changed from 7.10.1 to 7.12.1

Moving to 7.12.1 milestone; if you feel this is an error and should be addressed sooner, please move it back to the 7.10.1 milestone.

Note: See TracTickets for help on using tickets.