Hoogle Search
Within LTS Haskell 24.52 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
parameterized-utils Data.Parameterized.NatRepr Subtract sides of two inequalities.
leqSucc :: forall f (z :: Nat) . f z -> LeqProof z (z + 1)parameterized-utils Data.Parameterized.NatRepr No documentation available.
leqTrans :: forall (m :: Nat) (n :: Nat) (p :: Nat) . LeqProof m n -> LeqProof n p -> LeqProof m pparameterized-utils Data.Parameterized.NatRepr Apply transitivity to LeqProof
leqZero :: forall (n :: Nat) . LeqProof 0 nparameterized-utils Data.Parameterized.NatRepr Zero is less than or equal to any Nat.
testEquality :: forall (a :: k) (b :: k) . TestEquality f => f a -> f b -> Maybe (a :~: b)parameterized-utils Data.Parameterized.NatRepr Conditionally prove the equality of a and b.
testLeq :: forall (m :: Nat) (n :: Nat) . NatRepr m -> NatRepr n -> Maybe (LeqProof m n)parameterized-utils Data.Parameterized.NatRepr x testLeq y checks whether x is less than or equal to y.
class
TestEquality (f :: k -> Type)parameterized-utils Data.Parameterized.Peano This class contains types where you can learn the equality of two types from information contained in terms. The result should be Just Refl if and only if the types applied to f are equal:
testEquality (x :: f a) (y :: f b) = Just Refl ⟺ a = b
Typically, only singleton types should inhabit this class. In that case type argument equality coincides with term equality:testEquality (x :: f a) (y :: f b) = Just Refl ⟺ a = b ⟺ x = y
isJust (testEquality x y) = x == y
Singleton types are not required, however, and so the latter two would-be laws are not in fact valid in general.testEquality :: forall (a :: k) (b :: k) . TestEquality f => f a -> f b -> Maybe (a :~: b)parameterized-utils Data.Parameterized.Peano Conditionally prove the equality of a and b.
-
parameterized-utils Data.Parameterized.TH.GADT A polymorphic equality operator that generalizes TestEquality.
polyEq :: PolyEq u v => u -> v -> Boolparameterized-utils Data.Parameterized.TH.GADT No documentation available.