Default definition for fromRational

15 Oct
2015
15 Oct
'15
6:51 p.m.
A suitable default definition for fromRational could be the following: fromRational n = fromInteger (numerator n) / fromInteger (denominator n) Changing the MINIMUM pragma to just {-# MINIMAL recip | (/) #-} - Joe

15 Oct
15 Oct
7:24 p.m.
True. I can't think of any issues off hand.
-Edward
On Thu, Oct 15, 2015 at 6:51 PM, Joe Hermaszewski
A suitable default definition for fromRational could be the following:
fromRational n = fromInteger (numerator n) / fromInteger (denominator n)
Changing the MINIMUM pragma to just {-# MINIMAL recip | (/) #-}
- Joe _______________________________________________ Libraries mailing list Libraries@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries
3506
Age (days ago)
3506
Last active (days ago)
1 comments
2 participants
participants (2)
-
Edward Kmett
-
Joe Hermaszewski