| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Language.Symantic.Lib.Alternative
Description
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 #
Methods
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 #
Instances
| 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 # | |
Types
tyAlternative :: Source src => Type src vs a -> Type src vs (Alternative a) Source #
Terms
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 # | |