Is traceIO unnecessarily specialised to the IO monad?

Chris Seaton chris at chrisseaton.com
Mon Jan 21 17:58:21 CET 2013


The user can generate the string however they want. The proposed traceM
does not duplicate any printf functionality, and neither requires nor
prevents the use of printf.

It is more about allowing the user to add trace actions in an arbitrary
monad, rather than just the IO monad. If people want to trace in IO, and we
think it is worth a function to do that, might they not want to trace in
any monad, and it be worth adding a function for that?

Chris


On 21 January 2013 16:53, Henning Thielemann
<lemming at henning-thielemann.de>wrote:

>
> On Mon, 21 Jan 2013, Chris Seaton wrote:
>
>  Would traceM be a wanted addition to Debug.Trace?
>>
>
> You can use printf for generating Strings and show them using plain
> 'trace'.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130121/9646bc5e/attachment.htm>


More information about the Libraries mailing list