hermit-0.5.0.0: Haskell Equational Reasoning Model-to-Implementation Tunnel

Safe HaskellNone
LanguageHaskell2010

HERMIT.Dictionary.Fold

Contents

Synopsis

Fold/Unfold Transformation

Unlifted fold interface

unifyTypes :: [TyVar] -> Type -> Type -> Maybe [(TyVar, Type)] Source

Given list of TyVars which can match any type (the holes), a pattern, and a concrete type, return mapping from hole to type for successful unification.