# function-instances-algebra: Instances of the Algebra.* classes for functions

This package provides instances for functions `(k -> a)`

of the classes
Absolute, Algebraic, Differential, Field, Lattice, Monoid, Ring and Transcendental
from the numeric-prelude package. An instance for Additive already comes with the
original package.

If `a`

has an instance for one of the classes, then `(k -> a)`

has too.
The instances do what you would expect. Values become constant functions:

zero = const zero

Unary functions are composed:

sin f = sin . f

Binary functions fan out the input and combine both results:

f + g = \x -> f x + g x

You can either import them separately or import `Data.Function.Instances.Algebra`

to
get them all at once.

Versions | 0.1 |
---|---|

Dependencies | base (==4.*), numeric-prelude (==0.3.*) [details] |

License | BSD-3-Clause |

Author | Tobias Brandt |

Maintainer | tob.brandt@gmail.com |

Category | Math |

Home page | github.com/kreuzschlitzschraubenzieher/function-instances-algebra |

Uploaded | by TobiasBrandt at Sun Mar 25 17:48:30 UTC 2012 |

Distributions | NixOS:0.1 |

Downloads | 567 total (11 in the last 30 days) |

Rating | (no votes yet) [estimated by rule of succession] |

Your Rating | |

Status | Docs uploaded by user Build status unknown [no reports yet] Hackage Matrix CI |

## Modules

[Index]

*Data**Function**Instances*- Data.Function.Instances.Algebra
- Data.Function.Instances.Algebra.Absolute
- Data.Function.Instances.Algebra.Algebraic
- Data.Function.Instances.Algebra.Differential
- Data.Function.Instances.Algebra.Field
- Data.Function.Instances.Algebra.Lattice
- Data.Function.Instances.Algebra.Monoid
- Data.Function.Instances.Algebra.Ring
- Data.Function.Instances.Algebra.Transcendental

- Data.Function.Instances.Algebra

## Downloads

- function-instances-algebra-0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)