Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Documentation
class Eq a => Countable a where Source
countPrevious :: a -> Maybe a Source
countMaybeNext :: Maybe a -> Maybe a Source
Countable Bool | |
Countable Int8 | |
Countable Int16 | |
Countable Int32 | |
Countable Int64 | |
Countable Integer | |
Countable Word8 | |
Countable Word16 | |
Countable Word32 | |
Countable Word64 | |
Countable () | |
Countable Nothing | |
Countable a => Countable [a] | |
Countable a => Countable (Maybe a) | |
(Finite a, Countable b) => Countable (a -> b) | |
(Countable a, Countable b) => Countable (Either a b) | |
(Countable a, Countable b) => Countable (a, b) |
maybeRecount :: (Countable a, Countable b) => a -> Maybe b Source
countDownUp :: (Countable down, Countable up) => (down, up) -> Maybe (down, up) Source
countUpDown :: (Countable up, Countable down) => (up, down) -> Maybe (up, down) Source
finalIteration :: (a -> Maybe a) -> a -> a Source
class Countable a => AtLeastOneCountable a where Source
countFirst :: a Source
class AtLeastOneCountable a => InfiniteCountable a where Source
InfiniteCountable Integer | |
AtLeastOneCountable a => InfiniteCountable [a] | |
InfiniteCountable a => InfiniteCountable (Maybe a) | |
(Finite a, AtLeastOneCountable a, InfiniteCountable b) => InfiniteCountable (a -> b) | |
(Countable a, InfiniteCountable b) => InfiniteCountable (Either a b) | |
(AtLeastOneCountable a, InfiniteCountable b) => InfiniteCountable (a, b) |
recount :: (Countable a, InfiniteCountable b) => a -> b Source