| NumericPrelude-0.0: An experimental alternative hierarchy of numeric type classes | Contents | Index |
|
|
|
|
|
|
|
Documentation |
|
ringPower :: (C a, ToInteger b) => b -> a -> a |
|
fieldPower :: (C a, ToInteger b) => b -> a -> a |
|
class (C a, C a, Ord a) => Real a where |
| Methods | abs :: a -> a | | signum :: a -> a |
| | Instances | |
|
|
class (Real a, C a) => RealIntegral a where |
| Methods | quot :: a -> a -> a | | rem :: a -> a -> a | | quotRem :: a -> a -> (a, a) |
| | Instances | |
|
|
class (Real a, C a) => RealFrac a where |
| Methods | | | Instances | |
|
|
class Real a => ToRational a where |
| Methods | | | Instances | |
|
|
class (ToRational a, RealIntegral a) => ToInteger a where |
| Methods | | | Instances | |
|
|
fromIntegral :: (ToInteger a, C b) => a -> b |
|
approxRational :: (ToRational a, RealFrac a) => a -> a -> Rational |
|
fromRational :: C a => Rational -> a |
|
toPRational :: (Integral a, C a) => T a -> Ratio a |
|
preludeSplitFraction :: (RealFrac a, C a, ToInteger b) => a -> (b, a) |
|
legacyInstance :: a |
|
Produced by Haddock version 0.7 |