[core libraries] Re: Proposal: Debug.Trace.traceWith

Joachim Breitner mail at joachim-breitner.de
Sat Feb 10 19:40:00 UTC 2018


Hi,

Am Freitag, den 09.02.2018, 22:07 -0500 schrieb David Feuer:
> Other another bike-shed color:
> 
> traceWith :: (a -> String) -> a -> a
> 
> traceShowWith :: Show b => (a -> b) -> a -> a
> traceShowWith f = traceWith (show . f)

so many bike-shed colors! Maybe an indication that not all of them are
needed, but we should rather be better at pointing to useful, concice
and non-obvoius idioms?

> But on the other hand, pointfree.io tells me that you can write
> 
> trace =<< f
> trace =<< show . f
> 
> so I'm not sure how urgent these are.

Nifty! If we add this prominently to the docs in Data.Trace, wouldn’t
that suit us better?

Cheers,
Joachim

-- 
Joachim Breitner
  mail at joachim-breitner.de
  http://www.joachim-breitner.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20180210/e7850fac/attachment.sig>


More information about the Libraries mailing list