<div dir="auto">+1 from me, but the field name should be "up".</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 4, 2019, 02:29 Edward Kmett <<a href="mailto:ekmett@gmail.com">ekmett@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">+1 from me, with no preference between getDown and runDown<br><br><div dir="ltr">-Edward</div><div dir="ltr"><br>On May 3, 2019, at 1:13 PM, davean <<a href="mailto:davean@xkcd.com" target="_blank" rel="noreferrer">davean@xkcd.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">I have needed this many times.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, May 2, 2019 at 10:56 PM Fumiaki Kinoshita <<a href="mailto:fumiexcel@gmail.com" target="_blank" rel="noreferrer">fumiexcel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">It's awkward to write a lambda to unwrap this kind of wrappers. I propose<div><br></div><div>newtype Down a = Down { getDown :: a }</div><div><br></div><div>with the Show/Read instances as if they didn't have named fields.</div><div><br></div><div>The same goes for Control.Arrow.ArrowMonad, although I'm not sure about its usefulness...</div></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>
</div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>Libraries mailing list</span><br><span><a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a></span><br><span><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" target="_blank" rel="noreferrer">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a></span><br></div></blockquote></div>_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>