Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Data.Constraint.Nat
Description
Utilities for working with KnownNat
constraints.
This module is only available on GHC 8.0 or later.
Documentation
plusCommutes :: forall n m. Dict ((m + n) ~ (n + m)) #
timesCommutes :: forall n m. Dict ((m * n) ~ (n * m)) #
minCommutes :: forall n m. Dict (Min m n ~ Min n m) #
maxCommutes :: forall n m. Dict (Min m n ~ Min n m) #
gcdCommutes :: forall a b. Dict (Gcd a b ~ Gcd b a) #
lcmCommutes :: forall a b. Dict (Lcm a b ~ Lcm b a) #
minIsIdempotent :: forall n. Dict (Min n n ~ n) #
maxIsIdempotent :: forall n. Dict (Max n n ~ n) #
lcmIsIdempotent :: forall n. Dict (Lcm n n ~ n) #
gcdIsIdempotent :: forall n. Dict (Gcd n n ~ n) #
plusIsCancellative :: forall n m o. ((n + m) ~ (n + o)) :- (m ~ o) #