monoids-0.1.25: Monoids, specialized containers and a general map/reduce frameworkSource codeContentsIndex
Data.Ring.Semi.Ord
Stabilityexperimental
Maintainerekmett@gmail.com
Description
Turn an instance of Ord into a SemiRing over max and min
Synopsis
module Data.Ring.Semi
newtype Order a = Order {
getOrder :: a
}
data Priority a
= MinBound
| Priority a
| MaxBound
Documentation
module Data.Ring.Semi
newtype Order a Source
A SemiRing using a type's built-in Bounded instance.
Constructors
Order
getOrder :: a
show/hide Instances
data Priority a Source
A SemiRing which adds minBound and maxBound to a pre-existing type.
Constructors
MinBound
Priority a
MaxBound
show/hide Instances
Produced by Haddock version 2.4.2