Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Agda.Compiler.Treeless.Subst
Contents
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 #
Constructors
UnderLambda Any |
Instances
Monoid UnderLambda Source # | |
Defined in Agda.Compiler.Treeless.Subst | |
Semigroup UnderLambda Source # | |
Defined in Agda.Compiler.Treeless.Subst Methods (<>) :: UnderLambda -> UnderLambda -> UnderLambda # sconcat :: NonEmpty UnderLambda -> UnderLambda stimes :: Integral b => b -> UnderLambda -> UnderLambda | |
Show UnderLambda Source # | |
Defined in Agda.Compiler.Treeless.Subst Methods showsPrec :: Int -> UnderLambda -> ShowS show :: UnderLambda -> String showList :: [UnderLambda] -> ShowS | |
Eq UnderLambda Source # | |
Defined in Agda.Compiler.Treeless.Subst | |
Ord UnderLambda Source # | |
Defined in Agda.Compiler.Treeless.Subst Methods compare :: UnderLambda -> UnderLambda -> Ordering (<) :: UnderLambda -> UnderLambda -> Bool (<=) :: UnderLambda -> UnderLambda -> Bool (>) :: UnderLambda -> UnderLambda -> Bool (>=) :: UnderLambda -> UnderLambda -> Bool max :: UnderLambda -> UnderLambda -> UnderLambda min :: UnderLambda -> UnderLambda -> UnderLambda |
Constructors
SeqArg All |
Constructors
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 |
Constructors
Binder Int a |
Constructors
InSeq a |
tryStrengthen :: (HasFree a, Subst a) => Int -> a -> Maybe a Source #
Strenghtening.