<p dir="ltr">-1 for this reason. A strong recommendation in the docs is enough. There are legitimate uses and the busy work involved in fixing the 10,000 uses is not with it. That's time that could be spent on more libraries.</p>
<div class="gmail_quote">On Feb 24, 2015 7:19 AM, "Chris Allen" <<a href="mailto:cma@bitemyapp.com">cma@bitemyapp.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just a quick look on Github, filtering for uses of fromJust rather than re-declarations (mostly), shows 9,418 uses.<br>
<br>
<a href="https://github.com/search?utf8=%E2%9C%93&q=extension%3Ahs+fromJust+%22import+Data.Maybe%22&type=Code&ref=searchresults" target="_blank">https://github.com/search?<u></u>utf8=%E2%9C%93&q=extension%<u></u>3Ahs+fromJust+%22import+Data.<u></u>Maybe%22&type=Code&ref=<u></u>searchresults</a><br>
<br>
Searching for imports of Data.Maybe alone come to 19,985, indicating that at least ~half of the time people import Data.Maybe, they're using fromJust.<br>
<br>
<a href="https://github.com/search?utf8=%E2%9C%93&q=extension%3Ahs+%22import+Data.Maybe%22&type=Code&ref=searchresults" target="_blank">https://github.com/search?<u></u>utf8=%E2%9C%93&q=extension%<u></u>3Ahs+%22import+Data.Maybe%22&<u></u>type=Code&ref=searchresults</a><br>
<br>
As a baseline, Data.List shows up 28k times.<br>
<br>
<a href="https://github.com/search?utf8=%E2%9C%93&q=extension%3Ahs+%22import+Data.List%22&type=Code&ref=searchresults" target="_blank">https://github.com/search?<u></u>utf8=%E2%9C%93&q=extension%<u></u>3Ahs+%22import+Data.List%22&<u></u>type=Code&ref=searchresults</a><br>
<br>
This is just from a 3 minute glance. If we really want to narrow it down to Hackage I'll do something more thorough.<br>
<br>
On 02/24/2015 12:13 AM, Bardur Arantsson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On <a href="tel:24-02-2015%2006" value="+12402201506" target="_blank">24-02-2015 06</a>:42, Erik de Castro Lopo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
We currently have in the Data.Maybe module from base:<br>
<br>
fromJust :: Maybe a -> a<br>
<br>
which newbies often find using hoogle or other search tools and is<br>
a huge trap. *Every* usage of the above can be replaced by using<br>
<br>
fromMaybe :: a -> Maybe a -> a<br>
<br>
which forces the user to provide a default value for the case where<br>
the Maybe a is a Nothing.<br>
<br>
The idea would be to deprecate fromMaybe for 7.12 and remove it<br>
completely later.<br>
<br>
Comments?<br>
<br>
</blockquote>
How much code on Hackage is currently using fromJust? (A rough estimate<br>
by group would probably be sufficient.)<br>
<br>
Regards,<br>
<br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://mail.haskell.org/cgi-<u></u>bin/mailman/listinfo/libraries</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<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" target="_blank">http://mail.haskell.org/cgi-<u></u>bin/mailman/listinfo/libraries</a><br>
</blockquote></div>