Safe Haskell | None |
---|---|
Language | Haskell2010 |
Symantic for Alternative
.
- class Sym_Functor term => Sym_Alternative term where
- tyAlternative :: Source src => Type src vs a -> Type src vs (Alternative a)
- teAlternative_empty :: TermDef Alternative '[Proxy a, Proxy f] (Alternative f #> f a)
- teAlternative_alt :: TermDef Alternative '[Proxy a, Proxy f] (Alternative f #> (f a -> f a -> f a))
Class Sym_Alternative
class Sym_Functor term => Sym_Alternative term where Source #
empty :: Alternative f => term (f a) Source #
(<|>) :: Alternative f => term (f a) -> term (f a) -> term (f a) infixl 3 Source #
empty :: Sym_Alternative (UnT term) => Trans term => Alternative f => term (f a) Source #
(<|>) :: Sym_Alternative (UnT term) => Trans term => Alternative f => term (f a) -> term (f a) -> term (f a) infixl 3 Source #
Sym_Alternative Eval Source # | |
Sym_Alternative View Source # | |
(Sym_Lambda term, Sym_Alternative term) => Sym_Alternative (BetaT term) Source # | |
(Sym_Alternative r1, Sym_Alternative r2) => Sym_Alternative (Dup r1 r2) Source # | |
Type
s
tyAlternative :: Source src => Type src vs a -> Type src vs (Alternative a) Source #
Term
s
teAlternative_empty :: TermDef Alternative '[Proxy a, Proxy f] (Alternative f #> f a) Source #
teAlternative_alt :: TermDef Alternative '[Proxy a, Proxy f] (Alternative f #> (f a -> f a -> f a)) Source #
Orphan instances
ClassInstancesFor ((* -> *) -> Constraint) Alternative Source # | |
TypeInstancesFor ((* -> *) -> Constraint) Alternative Source # | |
NameTyOf ((* -> *) -> Constraint) Alternative Source # | |
FixityOf ((* -> *) -> Constraint) Alternative Source # | |
(Source src, SymInj ((* -> *) -> Constraint) ss Alternative) => ModuleFor ((* -> *) -> Constraint) src ss Alternative Source # | |
Gram_Term_AtomsFor ((* -> *) -> Constraint) src ss g Alternative Source # | |