Allow the evaluation of declaration splices in GHCi
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]'
...
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.1 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | GHCi |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |