Safe Haskell | None |
---|---|
Language | Haskell2010 |
- with :: (Generic a, MkPrismList (Rep a), MkStackPrism f, (~) (* -> *) (Rep a) (M1 * D d (M1 * C c f)), (~) * (StackPrismLhs f t) b, Constructor Meta c) => (Grammar p b ((:-) a t) -> Grammar p s ((:-) a t)) -> Grammar p s ((:-) a t)
- match :: (Generic a, MkPrismList (Rep a), Match (Rep a) bs t, (~) [*] bs (Coll (Rep a) t)) => Coproduct p s bs a t -> Grammar p s ((:-) a t)
- data Coproduct p s (bs :: [*]) a t :: * -> * -> [*] -> * -> * -> * where
GHC.Generics helpers
with :: (Generic a, MkPrismList (Rep a), MkStackPrism f, (~) (* -> *) (Rep a) (M1 * D d (M1 * C c f)), (~) * (StackPrismLhs f t) b, Constructor Meta c) => (Grammar p b ((:-) a t) -> Grammar p s ((:-) a t)) -> Grammar p s ((:-) a t) #
match :: (Generic a, MkPrismList (Rep a), Match (Rep a) bs t, (~) [*] bs (Coll (Rep a) t)) => Coproduct p s bs a t -> Grammar p s ((:-) a t) #
Combine all grammars provided in Coproduct
list into a single grammar.