Copyright | (C) 2014 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (rae@cs.brynmawr.edu) |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Defines and exports promoted and singleton versions of definitions from GHC.Num.
- class PNum (a :: Type) where
- class SNum a where
- type family Subtract (a :: a) (a :: a) :: a where ...
- sSubtract :: forall (t :: a) (t :: a). SNum a => Sing t -> Sing t -> Sing (Apply (Apply SubtractSym0 t) t :: a)
- data (:+$) (l :: TyFun a6989586621679410509 (TyFun a6989586621679410509 a6989586621679410509 -> Type))
- data (l :: a6989586621679410509) :+$$ (l :: TyFun a6989586621679410509 a6989586621679410509)
- type (:+$$$) (t :: a6989586621679410509) (t :: a6989586621679410509) = (:+) t t
- data (:-$) (l :: TyFun a6989586621679410509 (TyFun a6989586621679410509 a6989586621679410509 -> Type))
- data (l :: a6989586621679410509) :-$$ (l :: TyFun a6989586621679410509 a6989586621679410509)
- type (:-$$$) (t :: a6989586621679410509) (t :: a6989586621679410509) = (:-) t t
- data (:*$) (l :: TyFun a6989586621679410509 (TyFun a6989586621679410509 a6989586621679410509 -> Type))
- data (l :: a6989586621679410509) :*$$ (l :: TyFun a6989586621679410509 a6989586621679410509)
- type (:*$$$) (t :: a6989586621679410509) (t :: a6989586621679410509) = (:*) t t
- data NegateSym0 (l :: TyFun a6989586621679410509 a6989586621679410509)
- type NegateSym1 (t :: a6989586621679410509) = Negate t
- data AbsSym0 (l :: TyFun a6989586621679410509 a6989586621679410509)
- type AbsSym1 (t :: a6989586621679410509) = Abs t
- data SignumSym0 (l :: TyFun a6989586621679410509 a6989586621679410509)
- type SignumSym1 (t :: a6989586621679410509) = Signum t
- data FromIntegerSym0 (l :: TyFun Nat a6989586621679410509)
- type FromIntegerSym1 (t :: Nat) = FromInteger t
- data SubtractSym0 (l :: TyFun a6989586621679412800 (TyFun a6989586621679412800 a6989586621679412800 -> Type))
- data SubtractSym1 (l :: a6989586621679412800) (l :: TyFun a6989586621679412800 a6989586621679412800)
- type SubtractSym2 (t :: a6989586621679412800) (t :: a6989586621679412800) = Subtract t t
Documentation
class PNum (a :: Type) Source #
type (arg :: a) :+ (arg :: a) :: a infixl 6 Source #
type (arg :: a) :- (arg :: a) :: a infixl 6 Source #
type (arg :: a) :* (arg :: a) :: a infixl 7 Source #
type Negate (arg :: a) :: a Source #
type Abs (arg :: a) :: a Source #
type Signum (arg :: a) :: a Source #
type FromInteger (arg :: Nat) :: a Source #
(%:+) :: forall (t :: a) (t :: a). Sing t -> Sing t -> Sing (Apply (Apply (:+$) t) t :: a) infixl 6 Source #
(%:-) :: forall (t :: a) (t :: a). Sing t -> Sing t -> Sing (Apply (Apply (:-$) t) t :: a) infixl 6 Source #
(%:*) :: forall (t :: a) (t :: a). Sing t -> Sing t -> Sing (Apply (Apply (:*$) t) t :: a) infixl 7 Source #
sNegate :: forall (t :: a). Sing t -> Sing (Apply NegateSym0 t :: a) Source #
sAbs :: forall (t :: a). Sing t -> Sing (Apply AbsSym0 t :: a) Source #
sSignum :: forall (t :: a). Sing t -> Sing (Apply SignumSym0 t :: a) Source #
sFromInteger :: forall (t :: Nat). Sing t -> Sing (Apply FromIntegerSym0 t :: a) Source #
(%:-) :: forall (t :: a) (t :: a). ((Apply (Apply (:-$) t) t :: a) ~ Apply (Apply TFHelper_6989586621679410569Sym0 t) t) => Sing t -> Sing t -> Sing (Apply (Apply (:-$) t) t :: a) infixl 6 Source #
sNegate :: forall (t :: a). ((Apply NegateSym0 t :: a) ~ Apply Negate_6989586621679410584Sym0 t) => Sing t -> Sing (Apply NegateSym0 t :: a) Source #
sSubtract :: forall (t :: a) (t :: a). SNum a => Sing t -> Sing t -> Sing (Apply (Apply SubtractSym0 t) t :: a) Source #
Defunctionalization symbols
data (:+$) (l :: TyFun a6989586621679410509 (TyFun a6989586621679410509 a6989586621679410509 -> Type)) Source #
data (l :: a6989586621679410509) :+$$ (l :: TyFun a6989586621679410509 a6989586621679410509) Source #
data (:-$) (l :: TyFun a6989586621679410509 (TyFun a6989586621679410509 a6989586621679410509 -> Type)) Source #
data (l :: a6989586621679410509) :-$$ (l :: TyFun a6989586621679410509 a6989586621679410509) Source #
data (:*$) (l :: TyFun a6989586621679410509 (TyFun a6989586621679410509 a6989586621679410509 -> Type)) Source #
data (l :: a6989586621679410509) :*$$ (l :: TyFun a6989586621679410509 a6989586621679410509) Source #
data NegateSym0 (l :: TyFun a6989586621679410509 a6989586621679410509) Source #
SuppressUnusedWarnings (TyFun a6989586621679410509 a6989586621679410509 -> *) (NegateSym0 a6989586621679410509) Source # | |
type Apply a a (NegateSym0 a) l Source # | |
type NegateSym1 (t :: a6989586621679410509) = Negate t Source #
data SignumSym0 (l :: TyFun a6989586621679410509 a6989586621679410509) Source #
SuppressUnusedWarnings (TyFun a6989586621679410509 a6989586621679410509 -> *) (SignumSym0 a6989586621679410509) Source # | |
type Apply a a (SignumSym0 a) l Source # | |
type SignumSym1 (t :: a6989586621679410509) = Signum t Source #
data FromIntegerSym0 (l :: TyFun Nat a6989586621679410509) Source #
SuppressUnusedWarnings (TyFun Nat a6989586621679410509 -> *) (FromIntegerSym0 a6989586621679410509) Source # | |
type Apply Nat k2 (FromIntegerSym0 k2) l Source # | |
type FromIntegerSym1 (t :: Nat) = FromInteger t Source #
data SubtractSym0 (l :: TyFun a6989586621679412800 (TyFun a6989586621679412800 a6989586621679412800 -> Type)) Source #
SuppressUnusedWarnings (TyFun a6989586621679412800 (TyFun a6989586621679412800 a6989586621679412800 -> Type) -> *) (SubtractSym0 a6989586621679412800) Source # | |
type Apply a6989586621679412800 (TyFun a6989586621679412800 a6989586621679412800 -> Type) (SubtractSym0 a6989586621679412800) l Source # | |
data SubtractSym1 (l :: a6989586621679412800) (l :: TyFun a6989586621679412800 a6989586621679412800) Source #
SuppressUnusedWarnings (a6989586621679412800 -> TyFun a6989586621679412800 a6989586621679412800 -> *) (SubtractSym1 a6989586621679412800) Source # | |
type Apply a a (SubtractSym1 a l1) l2 Source # | |
type SubtractSym2 (t :: a6989586621679412800) (t :: a6989586621679412800) = Subtract t t Source #