numeric-prelude-0.4.2: An experimental alternative hierarchy of numeric type classes

Safe HaskellNone
LanguageHaskell98

Number.FixedPoint.Check

Contents

Synopsis

Types

data T Source

Constructors

Cons 

Instances

Eq T 
Fractional T 
Num T 
Ord T 
Show T 
C T 
C T 
C T 
C T 
C T 
C T 
C T 
C T 

Conversion

other number types

fromFloat :: C a => Integer -> a -> T Source

fromFloatBasis :: C a => Integer -> Int -> a -> T Source

fromFixedPoint :: Integer -> T -> T Source

denominator conversion

Lift core function

lift1 :: (Integer -> Integer -> Integer) -> T -> T Source

lift2 :: (Integer -> Integer -> Integer -> Integer) -> T -> T -> T Source

Show