Copyright | (c) Galois Inc. 2020 |
---|---|
License | BSD3 |
Maintainer | Joe Hendrix <jhendrix@galois.com> |
Safe Haskell | None |
Language | Haskell2010 |
Defines a GADT for indicating a base type must be an integer. Used for restricting index types in MATLAB arrays.
Synopsis
- data OnlyIntRepr tp = tp ~ BaseIntegerType => OnlyIntRepr
- toBaseTypeRepr :: OnlyIntRepr tp -> BaseTypeRepr tp
Documentation
data OnlyIntRepr tp Source #
This provides a GADT instance used to indicate a BaseType
must have
value BaseIntegerType
.
tp ~ BaseIntegerType => OnlyIntRepr |
Instances
TestEquality OnlyIntRepr Source # | |
Defined in What4.Utils.OnlyIntRepr testEquality :: forall (a :: k) (b :: k). OnlyIntRepr a -> OnlyIntRepr b -> Maybe (a :~: b) # | |
HashableF OnlyIntRepr Source # | |
Defined in What4.Utils.OnlyIntRepr hashWithSaltF :: forall (tp :: k). Int -> OnlyIntRepr tp -> Int # hashF :: forall (tp :: k). OnlyIntRepr tp -> Int # | |
Hashable (OnlyIntRepr tp) Source # | |
Defined in What4.Utils.OnlyIntRepr hashWithSalt :: Int -> OnlyIntRepr tp -> Int # hash :: OnlyIntRepr tp -> Int # |
toBaseTypeRepr :: OnlyIntRepr tp -> BaseTypeRepr tp Source #