Safe Haskell | None |
---|---|
Language | Haskell2010 |
Typeclass that tells how to measure different values as Monoid
.
Documentation
class Monoid m => Measured m a where Source #
This typeclass allows to specify how to convert value of type a
into
monoidal value of type m
.
Instances
Measured All Bool Source # | Measure boolean value with |
Measured Any Bool Source # | Measure boolean value with |
Monoid m => Measured m (Treap m a) Source # | \( O(1) \). Takes cached value from the root. |
Defined in Treap.Pure | |
Monoid m => Measured m (RTreap m a) Source # | \( O(1) \). Takes cached value from the root. |
Defined in Treap.Rand | |
(Ord a, Bounded a) => Measured (Min a) a Source # | Measure every comparable value with minimum. |
Defined in Treap.Measured | |
(Ord a, Bounded a) => Measured (Max a) a Source # | Measure every comparable value with maximum. |
Defined in Treap.Measured | |
Monoid a => Measured (Identity a) a Source # | Measure every |
Defined in Treap.Measured | |
Measured (First a) a Source # | Measure every value as the |
Defined in Treap.Measured | |
Measured (Last a) a Source # | Measure every value as the |
Defined in Treap.Measured | |
Monoid a => Measured (Dual a) a Source # | Measure every |
Defined in Treap.Measured | |
Num a => Measured (Sum a) a Source # | Measure every numeric value with addition. |
Defined in Treap.Measured | |
Num a => Measured (Product a) a Source # | Measure every numeric value with multiplication. |
Defined in Treap.Measured | |
Measured (Endo a) (a -> a) Source # | Measure every endomorphic function with compostion. |
Defined in Treap.Measured |