
#14875: -ddump-splices pretty-printing oddities with case statements -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Debugging | Unknown/Multiple information is incorrect | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Yes, using a precedence argument must be the Right Thing. We do this in quite a few places, notably `TyCoRep` and even `RtClosureInspect` and `Debugger`. Maybe the thing to do is to have {{{ newtype PprPrec = Prec Int deriving( Eq, Ord ) }}} in `BasicTypes` or `Outputable`, and use it for everything. Then we can have local defns like {{{ topPrec = 0 funPrec = 1 ... }}} and the various applications of it won't conflict with each other. Maybe `topPrec` can be shared. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14875#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler