Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Size ctx where
- unSS :: Size (S ctx) -> Size ctx
- sizeToInt :: Size ctx -> Int
- pattern S1 :: () => m ~ Ctx1 => Size m
- pattern S2 :: () => m ~ Ctx2 => Size m
- pattern S3 :: () => m ~ Ctx3 => Size m
- pattern S4 :: () => m ~ Ctx4 => Size m
- pattern S5 :: () => m ~ Ctx5 => Size m
- pattern S6 :: () => m ~ Ctx6 => Size m
- pattern S7 :: () => m ~ Ctx7 => Size m
- pattern S8 :: () => m ~ Ctx8 => Size m
- pattern S9 :: () => m ~ Ctx9 => Size m
Documentation
Term level witness of the size of the context.
>>>
SZ
0
>>>
SS (SS SZ)
2
Instances
TestEquality Size Source # | |
Defined in DeBruijn.Size | |
EqP Size Source # | |
GCompare Size Source # | |
GEq Size Source # | |
GShow Size Source # | |
Defined in DeBruijn.Size gshowsPrec :: forall (a :: k). Int -> Size a -> ShowS # | |
OrdP Size Source # | |
Show (Size ctx) Source # | |
Eq (Size ctx) Source # | |
Ord (Size ctx) Source # | |
Defined in DeBruijn.Size |