Safe Haskell | None |
---|---|
Language | Haskell2010 |
Beta-reduction of Term
s.
- betaTerm :: forall src ss es vs fun arg. SourceInj (TypeVT src) src => Constable (->) => Term src ss es vs (fun :: Type) -> Term src ss es vs (arg :: Type) -> Either (Error_Beta src) (TermT src ss es vs)
- betaTerms :: SourceInj (TypeVT src) src => Constable (->) => BinTree (TermVT src ss es) -> Either (Error_Beta src) (TermVT src ss es)
- data Error_Beta src
- = Error_Beta_Term_not_a_function (TypeVT src)
- | Error_Beta_Type_mismatch (TypeVT src) (TypeVT src)
- | Error_Beta_Unify (Error_Unify src)
Documentation
betaTerm :: forall src ss es vs fun arg. SourceInj (TypeVT src) src => Constable (->) => Term src ss es vs (fun :: Type) -> Term src ss es vs (arg :: Type) -> Either (Error_Beta src) (TermT src ss es vs) Source #
betaTerms :: SourceInj (TypeVT src) src => Constable (->) => BinTree (TermVT src ss es) -> Either (Error_Beta src) (TermVT src ss es) Source #
Type Error_Beta
data Error_Beta src Source #
Error_Beta_Term_not_a_function (TypeVT src) | |
Error_Beta_Type_mismatch (TypeVT src) (TypeVT src) | |
Error_Beta_Unify (Error_Unify src) | Cannot unify the expected |
Source src => Eq (Error_Beta src) Source # | |
Source src => Show (Error_Beta src) Source # | |
ErrorInj (Error_Unify src) (Error_Beta src) Source # | |
ErrorInj (Error_Beta src) (Error_Beta src) Source # | |
ErrorInj (Error_Beta src) (Error_Term src) # | |