Proposal: Add log1p and expm1 to GHC.Float.Floating

Tobias Florek haskell at ibotty.net
Thu Apr 24 12:43:32 UTC 2014


hi,

> It sounds like we're converging to a solution whereby they do get
> defaults, but you also get a MINIMAL pragma warning you you probably
> want to override them for manual Floating instances, so users will get a
> warning not an error if they omit implementations, and switching over
> will not hurt existing code.
>
> That warning should serve much the same role as the deprecation cycle
> would and no existing user code will break.

i assume "they" above means all proposed functions (not only log1p and 
expm1). if so, i am +1, if not, i am still +1.

cheers,
  tobias florek


More information about the Libraries mailing list