[GHC] #3634: Add traceM, traceShowM and withTrace
GHC
trac at galois.com
Sat Nov 7 07:48:54 EST 2009
#3634: Add traceM, traceShowM and withTrace
--------------------------------------+-------------------------------------
Reporter: MartijnVanSteenbergen | Owner:
Type: proposal | Status: new
Priority: normal | Milestone: Not GHC
Component: libraries/base | Version: 6.10.4
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
--------------------------------------+-------------------------------------
Changes (by igloo):
* difficulty: => Unknown
* milestone: => Not GHC
Comment:
I'm not sure the discussion has reached a conclusion yet, e.g. in
http://article.gmane.org/gmane.comp.lang.haskell.libraries/12087
Simon Marlow asks if `traceShowM` is necessary. It might be better to send
a current summary message to the list, and see if there are any more
comments.
If we do have a `traceShowM` then I would have thought
{{{
traceShowM :: (Show a, Monad m) => String -> a -> m ()
traceShowM msg x = traceM (msg ++ show x)
}}}
to be more useful, similar to withTrace.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3634#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list