Copyright | (C) 2015-2022 mniip |
---|---|
License | BSD3 |
Maintainer | mniip <mniip@mniip.com> |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
newtype Finite (n :: Nat) Source #
Finite number type.
is inhabited by exactly Finite
nn
values
the range [0, n)
including 0
but excluding n
. Invariants:
getFinite x < natVal x
getFinite x >= 0