Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data Nat
- type family Elem typ typs :: Bool
- type family Index typ typs :: Nat
- type family TEq t1 t2 :: Bool
- type family Length list :: Nat
- type family Append l1 l2 :: [*]
- type family Delete typ typs :: [*]
- type family FirstEQ list1 list2 :: Bool
- type family FirstContains list1 list2 :: Bool
- type family And a b
- type family HSubset h1 h2
Documentation
type family Elem typ typs :: Bool Source
Calculates to 'True if first type argument contained in second list element
type family Index typ typs :: Nat Source
Calculates to Nat kinded type describing the index of first argument in second argument
type family FirstContains list1 list2 :: Bool Source
FirstContains [] x = False | |
FirstContains x [] = False | |
FirstContains (x : xs) els = Elem x els |