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

Safe HaskellNone
LanguageHaskell2010

Game.Mastermind.CodeSet.Union

Synopsis

Documentation

data T a Source #

Cons [[a,b,c,d], [e,f,g,h]] expresses a x b x c x d union e x f x g x h, where x denotes the set product.

Instances
C T Source # 
Instance details

Defined in Game.Mastermind.CodeSet.Union

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.Union

Methods

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

show :: T a -> String #

showList :: [T a] -> ShowS #

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

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

cube :: Int -> T a -> T a Source #

overlappingPairs :: Enum a => T a -> [([EnumSet a], [EnumSet a])] Source #

for debugging: list all pairs of products, that overlap

overlapping :: Enum a => T a -> [([EnumSet a], [[EnumSet a]])] Source #

for debugging: list all subsets, that are contained in more than one product