Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Index n = I {}
- eq# :: Index n -> Index n -> Bool
- neq# :: Index n -> Index n -> Bool
- lt# :: Index n -> Index n -> Bool
- ge# :: Index n -> Index n -> Bool
- gt# :: Index n -> Index n -> Bool
- le# :: Index n -> Index n -> Bool
- enumFrom# :: KnownNat n => Index n -> [Index n]
- enumFromThen# :: KnownNat n => Index n -> Index n -> [Index n]
- enumFromTo# :: KnownNat n => Index n -> Index n -> [Index n]
- enumFromThenTo# :: KnownNat n => Index n -> Index n -> Index n -> [Index n]
- maxBound# :: KnownNat n => Index n
- (+#) :: KnownNat n => Index n -> Index n -> Index n
- (-#) :: KnownNat n => Index n -> Index n -> Index n
- (*#) :: KnownNat n => Index n -> Index n -> Index n
- fromInteger# :: KnownNat n => Integer -> Index n
- quot# :: KnownNat n => Index n -> Index n -> Index n
- rem# :: KnownNat n => Index n -> Index n -> Index n
- mod# :: KnownNat n => Index n -> Index n -> Index n
- toInteger# :: Index n -> Integer
Datatypes
Arbitrary-bounded unsigned integer represented by ceil(log_2(n))
bits.
Given an upper bound n
, an Index
n
number has a range of: [0 .. n
-1]
I | The constructor, |
KnownNat n => Bounded (Index n) | |
KnownNat n => Enum (Index n) | The functions: |
Eq (Index n) | |
KnownNat n => Integral (Index n) | |
KnownNat n => Num (Index n) | Operators report an error on overflow and underflow |
Ord (Index n) | |
KnownNat n => Real (Index n) | |
Show (Index n) | |
KnownNat n => Default (Index n) | |
KnownNat n => Lift (Index n) | |
Bundle (Index n) | |
Typeable (Nat -> *) Index | |
type Unbundled clk (Index n) = CSignal clk (Index n) |
Type classes
Eq
Ord
Enum (not synthesisable)
Bounded
Num
fromInteger# :: KnownNat n => Integer -> Index n Source
Integral
toInteger# :: Index n -> Integer Source