<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body 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">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">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">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="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">Libraries@haskell.org</a></span><br><span><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a></span><br></div></blockquote></body></html>