
Solution: when printing typechecked code, suppress details generated by
#10662: GHC warning shows technical summary of AST instead of the user's code -------------------------------------+------------------------------------- Reporter: kolmodin | Owner: Type: bug | Status: new Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 7.10.2-rc2 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by ak3n): Replying to [comment:1 simonpj]: the type checker itself. Excuse me, but how to suppress details? Is there a function for this? I found a warning generation function [https://ghc.haskell.org/trac/ghc/browser/ghc/compiler/deSugar/DsExpr.hs#L100... badMonadBind]. On which step do we need to suppress them ― `HsExpr` or `SDoc`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10662#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler