pTraceShowId (and perhaps the other functions in Debug.Pretty.Simple) doesn't seem implemented as I (and maybe you also) expect:
In GHCi,
> import qualified Data.Map as M
> import Debug.Pretty.Simple
> pTraceShowId $ M.fromList [(1, True)]
fromList "fromList [(1,True)]"
-- ^ Not pretty-printed!
although,
pPrint $ M.fromList [(1, True)]
pretty-prints!
fromList
[
( 1
, True
)
]
This doesn't look consistent behavior!
pTraceShowId(and perhaps the other functions inDebug.Pretty.Simple) doesn't seem implemented as I (and maybe you also) expect:In GHCi,
although,
pretty-prints!
fromList [ ( 1 , True ) ]This doesn't look consistent behavior!