
10 Feb
2018
10 Feb
'18
2:40 p.m.
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@joachim-breitner.de http://www.joachim-breitner.de/