Copyright | (C) 2010-2015 Maximilian Bolingbroke |
---|---|
License | BSD-3-Clause (see the file LICENSE) |
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | Safe |
Language | Haskell2010 |
Deprecated: Use Data.Universe.Class
- class Enumerable a where
- universeBounded :: (Enum a, Bounded a) => [a]
- newtype Enumerated a = Enumerated {
- unEnumerated :: a
Documentation
class Enumerable a where Source #
Finitely enumerable things
Enumerable Bool Source # | |
Enumerable Int Source # | |
Enumerable () Source # | |
Enumerable a => Enumerable (Maybe a) Source # | |
Enumerable a => Enumerable (Enumerated a) Source # | |
(Enumerable a, Enumerable b) => Enumerable (Either a b) Source # | |
(Enumerable a, Enumerable b) => Enumerable (a, b) Source # | |
universeBounded :: (Enum a, Bounded a) => [a] Source #
newtype Enumerated a Source #
Wrapper used to mark where we expect to use the fact that something is Enumerable
Enumerated | |
|
Eq a => Eq (Enumerated a) Source # | |
Ord a => Ord (Enumerated a) Source # | |
Enumerable a => Enumerable (Enumerated a) Source # | |