<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">And I did it myself, as it was about adding one single line rule:<div class=""><br class=""></div><div class=""><a href="https://github.com/ndmitchell/hlint/pull/115" class="">https://github.com/ndmitchell/hlint/pull/115</a></div><div class=""><br class=""></div><div class="">Let’s see what Neil thinks about :)</div><div class=""><br class=""></div><div class="">- Oleg</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 24 Feb 2015, at 12:28, Oleg Grenrus <<a href="mailto:oleg.grenrus@iki.fi" class="">oleg.grenrus@iki.fi</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 24 Feb 2015, at 12:23, Erik de Castro Lopo <<a href="mailto:mle+hs@mega-nerd.com" class="">mle+hs@mega-nerd.com</a>> wrote:</div><div class=""><br class="">Possibly what we need is a pragma to mark functions partial and a warning<br class="">flag that warns on usage of functions that have been marked partial.<br class=""><br class=""></div></blockquote><br class=""><div class="">I had this in mind too, but that is very heavy solution. I’d rather start with making hlint warnings?</div><div class=""><br class=""></div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">foo <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">::</span> Maybe Int <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">-></span> Int </div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">foo x <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">=</span> <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">if</span> isJust x <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">then</span> fromJust x <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">else</span> <span style="font-variant-ligatures: no-common-ligatures; color: #ff40ff" class="">0</span></div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0); min-height: 14px;" class=""><br class=""></div><div style="margin: 0px; font-size: 10px; font-family: Monaco; color: rgb(245, 245, 245); background-color: rgb(0, 0, 0);" class="">bar <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">::</span> Maybe Int <span style="font-variant-ligatures: no-common-ligatures; color: #ecec15" class="">-></span> Int </div><div class=""><span style="color: rgb(245, 245, 245); font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0);" class="">bar x </span><span style="font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0); color: rgb(236, 236, 21);" class="">=</span><span style="color: rgb(245, 245, 245); font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0);" class=""> </span><span style="font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0); color: rgb(255, 64, 255);" class="">1</span><span style="color: rgb(245, 245, 245); font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0);" class=""> </span><span style="font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0); color: rgb(236, 236, 21);" class="">+</span><span style="color: rgb(245, 245, 245); font-family: Monaco; font-size: 10px; background-color: rgb(0, 0, 0);" class=""> fromJust x</span></div><div class=""><br class=""></div><div class="">It warns about `foo` nonsense. It could propose to change `bar` part into `fromMaybe (error “I’know what I’m doing”) x`  ?</div><div class=""><br class=""></div><div class="">- Oleg</div></div><br class=""></div>_______________________________________________<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></blockquote></div><br class=""></div></body></html>