| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Napkin.Backends.MsSql.ApiGen.CombinationTree
Description
Similar to subsequences but for a tree structure
Synopsis
- data NodeType
- data CombinationTree a
- = CombiNode NodeType [CombinationTree a]
- | CombiLeaf a
- allTreePermutation :: CombinationTree a -> [[a]]
- mkFlatNode :: NodeType -> [a] -> CombinationTree a
- mkAll :: [a] -> CombinationTree a
- mkOneOf :: [a] -> CombinationTree a
- mkMayOneOf :: [a] -> CombinationTree a
Documentation
data CombinationTree a #
Constructors
| CombiNode NodeType [CombinationTree a] | |
| CombiLeaf a |
Instances
| Show a => Show (CombinationTree a) # | |
Defined in Napkin.Backends.MsSql.ApiGen.CombinationTree Methods showsPrec :: Int -> CombinationTree a -> ShowS # show :: CombinationTree a -> String # showList :: [CombinationTree a] -> ShowS # | |
| Eq a => Eq (CombinationTree a) # | |
Defined in Napkin.Backends.MsSql.ApiGen.CombinationTree Methods (==) :: CombinationTree a -> CombinationTree a -> Bool # (/=) :: CombinationTree a -> CombinationTree a -> Bool # | |
allTreePermutation :: CombinationTree a -> [[a]] #
flattens combinations leaves left to right
mkFlatNode :: NodeType -> [a] -> CombinationTree a #
mkAll :: [a] -> CombinationTree a #
mkOneOf :: [a] -> CombinationTree a #
mkMayOneOf :: [a] -> CombinationTree a #