Copyright | (c) 2012-2015 diagrams-core team (see LICENSE) |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | diagrams-discuss@googlegroups.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Documentation
Inf p a
represents the type a
extended with a new "infinite"
value, which is treated as either positive or negative infinity
depending on the type index p
. This type exists mostly for its
Ord
, Semigroup
, and Monoid
instances.
Bounded a => Bounded (NegInf a) Source # | |
Bounded a => Bounded (PosInf a) Source # | |
Monad (Inf p) Source # | |
Functor (Inf p) Source # | |
Applicative (Inf p) Source # | |
Foldable (Inf p) Source # | |
Traversable (Inf p) Source # | |
Eq a => Eq (Inf p a) Source # | |
(Data a, Data p) => Data (Inf p a) Source # | |
Ord a => Ord (Inf Neg a) Source # | Negative infinity is less than any finite value. |
Ord a => Ord (Inf Pos a) Source # | Positive infinity is greater than any finite value. |
Read a => Read (Inf p a) Source # | |
Show a => Show (Inf p a) Source # | |
Ord a => Semigroup (Inf Neg a) Source # | An ordered type extended with negative infinity is a semigroup
under |
Ord a => Semigroup (Inf Pos a) Source # | An ordered type extended with positive infinity is a semigroup
under |
Ord a => Monoid (Inf Neg a) Source # | An ordered type extended with negative infinity is a monoid under
|
Ord a => Monoid (Inf Pos a) Source # | An ordered type extended with positive infinity is a monoid under
|
Type index indicating positive infinity.
Bounded a => Bounded (PosInf a) Source # | |
Ord a => Ord (Inf Pos a) Source # | Positive infinity is greater than any finite value. |
Ord a => Semigroup (Inf Pos a) Source # | An ordered type extended with positive infinity is a semigroup
under |
Ord a => Monoid (Inf Pos a) Source # | An ordered type extended with positive infinity is a monoid under
|
Type index indicating negative infinity.
Bounded a => Bounded (NegInf a) Source # | |
Ord a => Ord (Inf Neg a) Source # | Negative infinity is less than any finite value. |
Ord a => Semigroup (Inf Neg a) Source # | An ordered type extended with negative infinity is a semigroup
under |
Ord a => Monoid (Inf Neg a) Source # | An ordered type extended with negative infinity is a monoid under
|
minimum :: Ord a => [a] -> PosInf a Source #
Find the minimum of a list of values. Returns positive infinity iff the list is empty.
maximum :: Ord a => [a] -> NegInf a Source #
Find the maximum of a list of values. Returns negative infinity iff the list is empty.