NumInstances-1.4: Instances of numeric classes for functions and tuples

Copyright | (c) Conal Elliott 2008-2013
License | BSD3
Maintainer | conal@conal.net
Stability | experimental
Safe Haskell | Safe
Language | Haskell98

Data.NumInstances.Function

Contents

- Orphan instances

Description

Number class instances for functions

# Orphan instances

Floating b => Floating (a -> b) Source # |

Instance details

Methods

pi :: a -> b

exp :: (a -> b) -> a -> b

log :: (a -> b) -> a -> b

sqrt :: (a -> b) -> a -> b

(**) :: (a -> b) -> (a -> b) -> a -> b

logBase :: (a -> b) -> (a -> b) -> a -> b

sin :: (a -> b) -> a -> b

cos :: (a -> b) -> a -> b

tan :: (a -> b) -> a -> b

asin :: (a -> b) -> a -> b

acos :: (a -> b) -> a -> b

atan :: (a -> b) -> a -> b

sinh :: (a -> b) -> a -> b

cosh :: (a -> b) -> a -> b

tanh :: (a -> b) -> a -> b

asinh :: (a -> b) -> a -> b

acosh :: (a -> b) -> a -> b

atanh :: (a -> b) -> a -> b

log1p :: (a -> b) -> a -> b

expm1 :: (a -> b) -> a -> b

log1pexp :: (a -> b) -> a -> b

log1mexp :: (a -> b) -> a -> b

Fractional b => Fractional (a -> b) Source # |
Instance details Methods (/) :: (a -> b) -> (a -> b) -> a -> b recip :: (a -> b) -> a -> b fromRational :: Rational -> a -> b
Num b => Num (a -> b) Source # |
Instance details Methods (+) :: (a -> b) -> (a -> b) -> a -> b (-) :: (a -> b) -> (a -> b) -> a -> b (*) :: (a -> b) -> (a -> b) -> a -> b negate :: (a -> b) -> a -> b abs :: (a -> b) -> a -> b signum :: (a -> b) -> a -> b fromInteger :: Integer -> a -> b