<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I decide to make a standalone package: <a href="http://hackage.haskell.org/package/if" class="">http://hackage.haskell.org/package/if</a><div class=""><br class=""></div><div class="">Cheers!</div><div class="">Winter</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 17 Nov 2016, at 18:19, Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de" class="">lemming@henning-thielemann.de</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">On Thu, 17 Nov 2016, Yitzchak Gale wrote:<br class=""><br class=""><blockquote type="cite" class="">Anyway, bool is the natural parameter order in Haskell.<br class="">I'll make more explicit what others have already said, with<br class="">this analogy:<br class=""><br class="">maybe (if it fails) (if it succeeds) (input data)<br class="">either (if it fails) (if it succeeds) (input data)<br class=""></blockquote><br class=""><blockquote type="cite" class="">foldl (if it's null) (if it's not null) (input data)<br class="">foldr (if it's null) (if it's not null) (input data)<br class=""></blockquote><br class="">Unfortunately, it is the other way round:<br class=""><br class="">foldl (if it's not null) (if it's null) (input data)<br class="">foldr (if it's not null) (if it's null) (input data)<br class="">_______________________________________________<br class="">Libraries mailing list<br class=""><a href="mailto:Libraries@haskell.org" class="">Libraries@haskell.org</a><br class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries<br class=""></div></div></blockquote></div><br class=""></div></body></html>