Safe Haskell | None |
---|---|
Language | GHC2021 |
Documentation
data CompareValue (op :: RelOp) (sign :: Sign) (n :: Natural) Source #
Instances
Predicate (CompareValue op sign n :: Type) Source # | Precedence of 4 (matching base relational operators e.g. |
Defined in Rerefined.Predicate.Relational.Value | |
(KnownNat n, Num a, Ord a, ReifyRelOp op, ReifySignedNat sign n, KnownPredicateName (CompareValue op sign n)) => Refine (CompareValue op sign n :: Type) a Source # | |
Defined in Rerefined.Predicate.Relational.Value validate :: Proxy# (CompareValue op sign n) -> a -> Maybe RefineFailure Source # | |
type PredicateName d (CompareValue op sign n :: Type) Source # | |
Defined in Rerefined.Predicate.Relational.Value type PredicateName d (CompareValue op sign n :: Type) = ShowParen (d > 4) (((("Value " ++ ShowRelOp op) ++ ShowChar ' ') ++ ShowSign sign) ++ ShowNatDec n) |
class ReifySignedNat (sign :: Sign) (n :: Natural) where Source #
reifySignedNat :: (Num a, KnownNat n) => a Source #
Instances
ReifySignedNat 'Neg n Source # | |
Defined in Rerefined.Predicate.Relational.Value reifySignedNat :: (Num a, KnownNat n) => a Source # | |
ReifySignedNat 'Pos n Source # | |
Defined in Rerefined.Predicate.Relational.Value reifySignedNat :: (Num a, KnownNat n) => a Source # |