pprint of ‘let’ inside ‘do’ prints invalid Haskell
On GHC 7.10.1
Prelude Language.Haskell.TH Language.Haskell.TH.Ppr> pprint <$> runQ [| do { let { x = 5 }; return x; } |]
"do {let x_0 = 5; GHC.Base.return x_0}"
The let binding inside the resulting do
should be inside curly braces too
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Template Haskell |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |