Proposal: Add log1p and expm1 to GHC.Float.Floating
Jacques Carette
carette at mcmaster.ca
Thu Apr 17 17:29:49 UTC 2014
On 14-04-17 01:15 PM, Edward Kmett wrote:
>
> log1p and expm1 are C standard library functions that are important
> for work with exponentials and logarithms.
>
> I propose adding them to the Floating class where it is defined in
> GHC.Float.
>
> We do not have to export these from Prelude. My knee-jerk reaction is
> that we probably shouldn't. The names are kind of awful, but are
> standard across the rest of the industry. We already have a precedent
> of not exporting clutter in the classes in the existing
> Data.Functorcontaining (<$), but it not currently coming into scope
> from the Prelude.
>
+1 to this proposal as a whole.
Jacques
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140417/6bb38bb7/attachment.html>
More information about the Libraries
mailing list