The function-instances-algebra package

[Tags:bsd3, library]

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.

Properties

Versions 0.1
Dependencies base (==4.*), numeric-prelude (==0.3.*) [details]
License BSD3
Author Tobias Brandt
Maintainer tob.brandt@gmail.com
Stability Unknown
Category Math
Home page github.com/kreuzschlitzschraubenzieher/function-instances-algebra
Uploaded Sun Mar 25 17:48:30 UTC 2012 by TobiasBrandt
Distributions NixOS:0.1
Downloads 303 total (2 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees