<div dir="ltr">Almost any formatting will do. At least I never care.<div><div>I assume those APIs would be used for very ad-hoc use (like the other APIs in Debug.Trace).</div><div>And debug codes put by such cases are deleted or disabled by <a href="https://hackage.haskell.org/package/NoTrace">NoTrace</a> package in production.</div><div>I want handy default functions available without batteries.</div><div>Detailed formatting for debug messages should be configured by third-parties' logging libraries.</div><br><div class="gmail_quote"><div dir="ltr">2018年6月8日(金) 4:29 Andrew Martin <<a href="mailto:andrew.thaddeus@gmail.com" target="_blank">andrew.thaddeus@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I am -1 on this. Such a function requires making a decision about formatting. What does a user expect from<div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">> taggedTraceShowId "meganum" (42 :: Int)</span><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Any of these are reasonable:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">meganum: 42</span></div><div><span style="font-size:12.8px">meganum [42]</span></div><div><span style="font-size:12.8px">[meganum]: 42</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">In different applications I've worked on, I've wanted different flavors of something like this. Since there's no obvious choice, I don't think base is a good place for such a function.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 7, 2018 at 12:59 PM, Ben Gamari <span dir="ltr"><<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Edward Kmett <<a href="mailto:ekmett@gmail.com" target="_blank">ekmett@gmail.com</a>> writes:<br>
<br>
> What different users would do with such a prefix, how to display it,<br>
> etc. varies just enough that i’m somewhat hesitant to grow the API.<br>
> I’m a very weak -1. But I’d happily let anybody else on the committee<br>
> override that if they had a strong preference.<br>
><br>
</span>Right, as I mentioned I'm not sure about the tagging idea. However, I<br>
have found things of the form `(a -> String) -> a -> a` handy in the past.<br>
Then again, it's pretty trivial to open-code this when needed.<br>
<div class="m_5110121594161972719m_8734365343855277527HOEnZb"><div class="m_5110121594161972719m_8734365343855277527h5"><br>
Cheers,<br>
<br>
- Ben<br>
<br>
-- <br>
You received this message because you are subscribed to the Google Groups "haskell-core-libraries" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:haskell-core-libraries%2Bunsubscribe@googlegroups.com" target="_blank">haskell-core-libraries+unsubscribe@googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" rel="noreferrer" target="_blank">https://groups.google.com/d/optout</a>.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_5110121594161972719m_8734365343855277527gmail_signature" data-smartmail="gmail_signature">-Andrew Thaddeus Martin</div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_5110121594161972719gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>山本悠滋<br>twitter: @igrep<br>GitHub: <a href="https://github.com/igrep" target="_blank">https://github.com/igrep</a></div><div>GitLab: <a href="https://gitlab.com/igrep" target="_blank">https://gitlab.com/igrep</a><br>Facebook: <a href="http://www.facebook.com/igrep" target="_blank">http://www.facebook.com/igrep</a><br>Google+: <a href="https://plus.google.com/u/0/+YujiYamamoto_igrep" target="_blank">https://plus.google.com/u/0/+YujiYamamoto_igrep</a></div></div></div></div></div>