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

Safe HaskellNone
LanguageHaskell2010

Game.Mastermind.CodeSet.Tree

Synopsis

Documentation

data T a Source #

Products [(a,b),(c,d)] expresses a x b union c x d, where x denotes the set product.

Instances
C T Source # 
Instance details

Defined in Game.Mastermind.CodeSet.Tree

Methods

empty :: T a Source #

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

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

unit :: T a Source #

leftNonEmptyProduct :: T0 a -> T a -> T a Source #

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

symbols :: Enum a => T a -> EnumSet a Source #

null :: T a -> Bool Source #

size :: T a -> Integer Source #

select :: Enum a => T a -> Integer -> [a] Source #

representationSize :: T a -> Int Source #

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

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

Defined in Game.Mastermind.CodeSet.Tree

Methods

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

show :: T a -> String #

showList :: [T a] -> ShowS #

null :: T a -> Bool Source #

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

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

propIntersections :: Enum a => T [] (T a) -> Bool Source #