board-games-0.3: Three games for inclusion in a web server

Safe HaskellNone
LanguageHaskell2010

Game.Mastermind.NonEmptyEnumSet

Documentation

newtype T a Source #

Constructors

Cons 

Fields

Instances
Eq (T a) Source # 
Instance details

Defined in Game.Mastermind.NonEmptyEnumSet

Methods

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

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

Ord (T a) Source # 
Instance details

Defined in Game.Mastermind.NonEmptyEnumSet

Methods

compare :: T a -> T a -> Ordering #

(<) :: T a -> T a -> Bool #

(<=) :: T a -> T a -> Bool #

(>) :: T a -> T a -> Bool #

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

max :: T a -> T a -> T a #

min :: T a -> T a -> T a #

(Enum a, Show a) => Show (T a) Source # 
Instance details

Defined in Game.Mastermind.NonEmptyEnumSet

Methods

showsPrec :: Int -> T a -> ShowS #

show :: T a -> String #

showList :: [T a] -> ShowS #

size :: T a -> Int Source #

member :: Enum a => a -> T a -> Bool Source #

fromList :: Enum a => T [] a -> T a Source #

toFlatList :: Enum a => T a -> [a] Source #

fetch :: EnumSet a -> Maybe (T a) Source #

singleton :: Enum a => a -> T a Source #

union :: T a -> T a -> T a Source #