
#10734: pprint of ‘let’ inside ‘do’ prints invalid Haskell -------------------------------------+------------------------------------- Reporter: Fuuzetsu | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Template Haskell | Version: 7.10.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by Fuuzetsu): One last comment in case someone else hits it. You can workaround with {{{#!hs Prelude Language.Haskell.TH Language.Haskell.TH.Ppr> pprint <$> runQ [| do { x <- return 5; return x; } |] "do {x_0 <- GHC.Base.return 5; GHC.Base.return x_0}" }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10734#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler