reactive-0.10.1: Simple foundation for functional reactive programmingSource codeContentsIndex
FRP.Reactive.Improving
Stabilityexperimental
Maintainerconal@conal.net
Description
Improving values -- efficient version
Synopsis
data Improving a = Imp {
exact :: a
compareI :: a -> Ordering
}
exactly :: Ord a => a -> Improving a
minI :: Ord a => Improving a -> Improving a -> (Improving a, Bool)
maxI :: Ord a => Improving a -> Improving a -> (Improving a, Bool)
Documentation
data Improving a Source
An improving value.
Constructors
Imp
exact :: a
compareI :: a -> Ordering
show/hide Instances
Eq a => Eq (Improving a)
Ord a => Ord (Improving a)
EqProp a => EqProp (Improving a)
exactly :: Ord a => a -> Improving aSource
A known improving value (which doesn't really improve)
minI :: Ord a => Improving a -> Improving a -> (Improving a, Bool)Source
Efficient combination of min and '(<=)'
maxI :: Ord a => Improving a -> Improving a -> (Improving a, Bool)Source
Efficient combination of max and '(>=)'
Produced by Haddock version 2.4.2