| Safe Haskell | Trustworthy |
|---|---|
| Language | Haskell2010 |
DeBruijn.Size
Contents
Synopsis
- data Size (ctx :: Ctx) where
- unSS :: forall (ctx :: Ctx). Size (S ctx) -> Size ctx
- sizeToInt :: forall (ctx :: Ctx). 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
data Size (ctx :: Ctx) where Source #
Term level witness of the size of a context.
>>>SZ0
>>>SS (SS SZ)2
Bundled Patterns
| pattern SZ :: () => m ~ EmptyCtx => Size m | |
| pattern SS :: forall m n. () => m ~ S n => Size n -> Size m |
Instances
unSS :: forall (ctx :: Ctx). Size (S ctx) -> Size ctx Source #
Unapply SS. Occasionally more useful than pattern matching.