| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Rzk.Check.Foil.Extras
Description
Small operations missing from the public free-foil API.
This is the only module in the new checker that uses
Control.Monad.Foil.Internal. These operations are candidates for
upstreaming to free-foil; callers should not use the underlying IntMap
representations of NameMap or Substitution.
Synopsis
- replaceName :: forall (n :: S) a. Name n -> a -> NameMap n a -> NameMap n a
- nameMapFromList :: forall (n :: S) a. [(Name n, a)] -> NameMap n a
- singletonSubstitution :: forall (i :: S) e (o :: S). Name i -> e o -> Substitution e i o
Documentation
replaceName :: forall (n :: S) a. Name n -> a -> NameMap n a -> NameMap n a Source #
Replace the value at an existing key in a total name map. The caller guarantees that the key is present, as in the entry map of a context.
nameMapFromList :: forall (n :: S) a. [(Name n, a)] -> NameMap n a Source #
Build a total name map from all scoped names and their values. Later duplicate entries win; the caller supplies every name in the scope.
singletonSubstitution :: forall (i :: S) e (o :: S). Name i -> e o -> Substitution e i o Source #
A substitution with one free name mapped to one value.