| NumericPrelude-0.0: An experimental alternative hierarchy of numeric type classes | Contents | Index |
|
Algebra.Indexable | Portability | portable | Stability | provisional | Maintainer | numericprelude@henning-thielemann.de |
|
|
|
|
|
Description |
An alternative type class for Ord
which allows an ordering for dictionaries like Data.Map and Data.Set
independently from the ordering with respect to a magnitude.
|
|
Synopsis |
|
|
|
Documentation |
|
class Eq a => C a where |
Definition of an alternative ordering of objects
independent from a notion of magnitude.
For an application see MathObj.PartialFraction.
| | Methods | | | Instances | |
|
|
ordCompare :: Ord a => a -> a -> Ordering |
If the type has already an Ord instance
it is certainly the most easiest to define compare
to be equal to Ord's compare.
|
|
liftCompare :: C b => (a -> b) -> a -> a -> Ordering |
Lift compare implementation from a wrapped object.
|
|
data ToOrd a |
Wrap an indexable object such that it can be used in Data.Map and Data.Set.
| Instances | |
|
|
toOrd :: a -> ToOrd a |
|
fromOrd :: ToOrd a -> a |
|
Produced by Haddock version 0.7 |