Skip to content

Debug.Trace.trace should work on Show

Debug.Trace.trace has type

  trace :: String -> a -> a

which forces me to insert calls to show.  Could it be
generalised to

  trace :: Show a => a -> b -> b

Thanks,

Juliusz Chroboczek
Edited by Simon Marlow
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information