symantic-grammar-0.2.0.20170709: Library for symantic grammars.
Language.Symantic.Grammar.Error
Contents
ErrorInj
Synopsis
class ErrorInj a b where Source #
Minimal complete definition
errorInj
Methods
errorInj :: a -> b Source #
Instances
errorInj :: err -> Either e a Source #
liftError :: forall e0 err e1 a. ErrorInj e0 e1 => ErrorInj e1 err => Proxy e1 -> Either e0 a -> Either err a Source #