Hoogle Search
Within LTS Haskell 24.67 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
class
TestEquality (f :: k -> Type)parameterized-utils Data.Parameterized.NatRepr 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.addIsLeq :: forall f (n :: Nat) g (m :: Natural) . f n -> g m -> LeqProof n (n + m)parameterized-utils Data.Parameterized.NatRepr No documentation available.
-
parameterized-utils Data.Parameterized.NatRepr No documentation available.
addPrefixIsLeq :: forall f (m :: Natural) g (n :: Nat) . f m -> g n -> LeqProof n (m + n)parameterized-utils Data.Parameterized.NatRepr No documentation available.
-
parameterized-utils Data.Parameterized.NatRepr (<=) is a decidable relation on nats.
leqAdd :: forall f (m :: Nat) (n :: Nat) (p :: Natural) . LeqProof m n -> f p -> LeqProof m (n + p)parameterized-utils Data.Parameterized.NatRepr Produce proof that adding a value to the larger element in an LeqProof is larger
-
parameterized-utils Data.Parameterized.NatRepr Add both sides of two inequalities
-
parameterized-utils Data.Parameterized.NatRepr No documentation available.
-
parameterized-utils Data.Parameterized.NatRepr Congruence rule for multiplication
-
parameterized-utils Data.Parameterized.NatRepr Multiplying two positive numbers results in a positive number.