<div dir="ltr">Why is this hard-coded to pi? Is there a particular reason it cannot be used for any irrational number?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 12:36 PM, Douglas McClean <span dir="ltr"><<a href="mailto:douglas.mcclean@gmail.com" target="_blank">douglas.mcclean@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>I'm announcing the release of the new exact-pi package.<br><br></div>It provides a type that exactly represents all rational multiples of integer powers of pi. Because it's closed under multiplication and taking of reciprocals, it's useful for computing exact conversion factors between physical units. In order to provide full Num and Floating instances there is also a representation for approximate values.<br><br></div>I'm not sure if this will be of use to anyone else, but it is nice and self-contained so I thought I would put it out there.<br><br></div>-Doug McClean<br></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br></div>