| Copyright | Copyright (c) 2007--2021 wren gayle romano |
|---|---|
| License | BSD |
| Maintainer | wren@cpan.org |
| Stability | experimental |
| Portability | semi-portable (Rank2Types, MPTCs,...) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
Control.Unification.STVar
Description
This module defines an implementation of unification variables using the ST monad.
Synopsis
- data STVar s t
- data STBinding s a
- runSTBinding :: (forall s. STBinding s a) -> a
Documentation
Unification variables implemented by STRefs. In addition to the STRef for the term itself, we also track the variable's ID (to support visited-sets).
A monad for handling STVar bindings.
runSTBinding :: (forall s. STBinding s a) -> a Source #