Module
Data.Semiring.Generic
- Package
- purescript-prelude
- Repository
- purescript/purescript-prelude
#GenericSemiring Source
class GenericSemiring a where
Members
genericAdd' :: a -> a -> a
genericZero' :: a
genericMul' :: a -> a -> a
genericOne' :: a
Instances
GenericSemiring NoArguments
(Semiring a) => GenericSemiring (Argument a)
(GenericSemiring a, GenericSemiring b) => GenericSemiring (Product a b)
(GenericSemiring a) => GenericSemiring (Constructor name a)
#genericZero Source
genericZero :: forall a rep. Generic a rep => GenericSemiring rep => a
A Generic
implementation of the zero
member from the Semiring
type class.
#genericOne Source
genericOne :: forall a rep. Generic a rep => GenericSemiring rep => a
A Generic
implementation of the one
member from the Semiring
type class.
#genericAdd Source
genericAdd :: forall a rep. Generic a rep => GenericSemiring rep => a -> a -> a
A Generic
implementation of the add
member from the Semiring
type class.
#genericMul Source
genericMul :: forall a rep. Generic a rep => GenericSemiring rep => a -> a -> a
A Generic
implementation of the mul
member from the Semiring
type class.
- Modules
- Control.
Applicative - Control.
Apply - Control.
Bind - Control.
Category - Control.
Monad - Control.
Semigroupoid - Data.
Boolean - Data.
BooleanAlgebra - Data.
Bounded - Data.
Bounded. Generic - Data.
CommutativeRing - Data.
DivisionRing - Data.
Eq - Data.
Eq. Generic - Data.
EuclideanRing - Data.
Field - Data.
Function - Data.
Functor - Data.
Generic. Rep - Data.
HeytingAlgebra - Data.
HeytingAlgebra. Generic - Data.
Monoid - Data.
Monoid. Additive - Data.
Monoid. Conj - Data.
Monoid. Disj - Data.
Monoid. Dual - Data.
Monoid. Endo - Data.
Monoid. Generic - Data.
Monoid. Multiplicative - Data.
NaturalTransformation - Data.
Ord - Data.
Ord. Generic - Data.
Ordering - Data.
Reflectable - Data.
Ring - Data.
Ring. Generic - Data.
Semigroup - Data.
Semigroup. First - Data.
Semigroup. Generic - Data.
Semigroup. Last - Data.
Semiring - Data.
Semiring. Generic - Data.
Show - Data.
Show. Generic - Data.
Symbol - Data.
Unit - Data.
Void - Prelude
- Record.
Unsafe - Type.
Proxy