| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
LAM.IsDBEnv
Description
Environments for DeBruijn terms.
Synopsis
- class IsDBEnv (t :: Type -> Type) where
- toClosure :: forall (t :: Type -> Type) r. IsDBEnv t => Trie (RHeapPointer r DBTerm t) -> Term -> RClosure r DBTerm t
- addToEnv :: forall (t :: Type -> Type). IsDBEnv t => Name -> Term -> Trie (RHeapPointer IORef DBTerm t) -> IO (Trie (RHeapPointer IORef DBTerm t))
Documentation
class IsDBEnv (t :: Type -> Type) where #
A container that can be used as an environment for DeBruijn
terms. The key component is the indexing function lookupI.
Methods
fromList :: [(Name, a)] -> t a #
cons :: Name -> a -> t a -> t a #
uncons :: t a -> Maybe (Name, a, t a) #
Instances
| IsDBEnv NamedList # | |
Defined in LAM.IsDBEnv | |
| IsDBEnv Seq # | |
| IsDBEnv Vector # | |
| IsDBEnv [] # | |