Skip to content

pTraceShowId doesn't pretty-print #19

@igrep

Description

@igrep

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!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions