Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype UnderLambda = UnderLambda Any
- newtype SeqArg = SeqArg All
- data Occurs = Occurs Int UnderLambda SeqArg
- once :: Occurs
- inSeq :: Occurs -> Occurs
- underLambda :: Occurs -> Occurs
- class HasFree a where
- freeIn :: HasFree a => Int -> a -> Bool
- occursIn :: HasFree a => Int -> a -> Occurs
- data Binder a = Binder Int a
- newtype InSeq a = InSeq a
- tryStrengthen :: (HasFree a, Subst a) => Int -> a -> Maybe a
Documentation
newtype UnderLambda Source #
UnderLambda Any |
Instances
SeqArg All |
Occurs Int UnderLambda SeqArg |
underLambda :: Occurs -> Occurs Source #
class HasFree a where Source #
Instances
HasFree TAlt Source # | |
HasFree TTerm Source # | |
HasFree Int Source # | |
Defined in Agda.Compiler.Treeless.Subst | |
HasFree a => HasFree (Binder a) Source # | |
HasFree a => HasFree (InSeq a) Source # | |
HasFree a => HasFree [a] Source # | |
Defined in Agda.Compiler.Treeless.Subst | |
(HasFree a, HasFree b) => HasFree (a, b) Source # | |
Defined in Agda.Compiler.Treeless.Subst |
Binder Int a |
InSeq a |
Orphan instances
Subst TAlt Source # | |
applySubst :: Substitution' (SubstArg TAlt) -> TAlt -> TAlt Source # | |
Subst TTerm Source # | |
applySubst :: Substitution' (SubstArg TTerm) -> TTerm -> TTerm Source # | |
DeBruijn TTerm Source # | |
deBruijnVar :: Int -> TTerm Source # debruijnNamedVar :: String -> Int -> TTerm Source # deBruijnView :: TTerm -> Maybe Int Source # |