lattices-1.7.1.1: Fine-grained library for constructing and manipulating lattices

Copyright(C) 2010-2015 Maximilian Bolingbroke
LicenseBSD-3-Clause (see the file LICENSE)
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellSafe
LanguageHaskell2010

Algebra.Enumerable

Description

Deprecated: Use Data.Universe.Class

Synopsis

Documentation

class Enumerable a where Source #

Finitely enumerable things

Minimal complete definition

universe

Methods

universe :: [a] Source #

Instances
Enumerable Bool Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [Bool] Source #

Enumerable Int Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [Int] Source #

Enumerable () Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [()] Source #

Enumerable a => Enumerable (Maybe a) Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [Maybe a] Source #

Enumerable a => Enumerable (Enumerated a) Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [Enumerated a] Source #

(Enumerable a, Enumerable b) => Enumerable (Either a b) Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [Either a b] Source #

(Enumerable a, Enumerable b) => Enumerable (a, b) Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [(a, b)] Source #

newtype Enumerated a Source #

Wrapper used to mark where we expect to use the fact that something is Enumerable

Constructors

Enumerated 

Fields

Instances
Eq a => Eq (Enumerated a) Source # 
Instance details

Defined in Algebra.Enumerable

Methods

(==) :: Enumerated a -> Enumerated a -> Bool #

(/=) :: Enumerated a -> Enumerated a -> Bool #

Ord a => Ord (Enumerated a) Source # 
Instance details

Defined in Algebra.Enumerable

Enumerable a => Enumerable (Enumerated a) Source # 
Instance details

Defined in Algebra.Enumerable

Methods

universe :: [Enumerated a] Source #