[ ghc-Feature Requests-1340203 ] Debug.Trace.trace should work on Show

SourceForge.net noreply at sourceforge.net
Thu Oct 27 22:39:26 EDT 2005


Feature Requests item #1340203, was opened at 2005-10-28 04:38
Message generated for change (Settings changed) made by jch
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=358032&aid=1340203&group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Priority: 2
Submitted By: Juliusz Chroboczek (jch)
Assigned to: Nobody/Anonymous (nobody)
Summary: Debug.Trace.trace should work on Show

Initial Comment:
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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=358032&aid=1340203&group_id=8032


More information about the Glasgow-haskell-users mailing list