Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
checkProgram ∷ (Ord ann, HasUnique name TermUnique, HasUnique tyname TypeUnique, AsUniqueError e ann, MonadError e m) ⇒ (UniqueError ann → Bool) → Program tyname name uni fun ann → m () Source #
checkTerm ∷ (Ord ann, HasUnique name TermUnique, HasUnique tyname TypeUnique, AsUniqueError e ann, MonadError e m) ⇒ (UniqueError ann → Bool) → Term tyname name uni fun ann → m () Source #
data UniqueError ann Source #
MultiplyDefined !Unique !ann !ann | |
IncoherentUsage !Unique !ann !ann | |
FreeVariable !Unique !ann |
Instances
class AsUniqueError r ann | r → ann where Source #
_UniqueError ∷ Prism' r (UniqueError ann) Source #
_MultiplyDefined ∷ Prism' r (Unique, ann, ann) Source #
_IncoherentUsage ∷ Prism' r (Unique, ann, ann) Source #
_FreeVariable ∷ Prism' r (Unique, ann) Source #