<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">There is an implementation of the debian version sorting algorithm here: <a href="http://hackage.haskell.org/package/debian-3.93.2/docs/Debian-Version.html">http://hackage.haskell.org/package/debian-3.93.2/docs/Debian-Version.html</a></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 11:40 AM Javran Cheng <<a href="mailto:javran.c@gmail.com">javran.c@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="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Thanks for the suggestion! natural-sort looks like what I want - I've just taken a quick look and the algorithm is almost the same if I'm not mistaken.</div><div><br></div><div>also thanks MarLinn - it's just that as I wrote I realized I've been implemented "tr" over and over again so there might be a common name for it. I do recognize there's a (***) out there</div><div>and hoogling (a, [a]) -> [a] doesn't yield any function of interest., didn't bother to go any further to see the rest of it is just a curried (:).</div><div>I'd still prefer "tr" though as for me if you think it as a rewrite rule, it's more readable than having a chain of function composition.</div><div><br></div><div>Cheers!</div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Dec 8, 2018 at 6:34 AM Francesco Ariis <<a href="mailto:fa-ml@ariis.it" target="_blank">fa-ml@ariis.it</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">On Sat, Dec 08, 2018 at 03:09:43PM +0100, Iustin Pop wrote:<br>
> Apologies - given the ".12", I implicitly translated ".2" as ".20". Just<br>
> a slow day :)<br>
<br>
No worries, I have bitten by "0.x/0.x0" more times than I am willing to<br>
admit :P<br>
-F<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_6991859816850757489gmail_signature"><div dir="ltr">Javran (Fang) Cheng<br></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>