zabt-0.3.0.0: Arity-typed abstract binding trees
Zabt.Internal.Index
Description
Newtype for de Bruijn indices.
Synopsis
newtype Index Source #
A de Bruijn index.
Constructors
Fields
Instances
Methods
(==) :: Index -> Index -> Bool #
(/=) :: Index -> Index -> Bool #
compare :: Index -> Index -> Ordering #
(<) :: Index -> Index -> Bool #
(<=) :: Index -> Index -> Bool #
(>) :: Index -> Index -> Bool #
(>=) :: Index -> Index -> Bool #
max :: Index -> Index -> Index #
min :: Index -> Index -> Index #
showsPrec :: Int -> Index -> ShowS #
show :: Index -> String #
showList :: [Index] -> ShowS #
freshen :: Index -> Index Source #
zero :: Index Source #
next :: Index -> Index Source #