Copyright | (C) 2013 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 the SEq singleton version of the Eq type class.
- class PEq a where
- class SEq k where
- data (:==$) (l :: TyFun a6989586621679297822 (TyFun a6989586621679297822 Bool -> Type))
- data (l :: a6989586621679297822) :==$$ (l :: TyFun a6989586621679297822 Bool)
- type (:==$$$) (t :: a6989586621679297822) (t :: a6989586621679297822) = (:==) t t
- data (:/=$) (l :: TyFun a6989586621679297822 (TyFun a6989586621679297822 Bool -> Type))
- data (l :: a6989586621679297822) :/=$$ (l :: TyFun a6989586621679297822 Bool)
- type (:/=$$$) (t :: a6989586621679297822) (t :: a6989586621679297822) = (:/=) t t
Documentation
The promoted analogue of Eq
. If you supply no definition for '(:==)',
then it defaults to a use of '(==)', from Data.Type.Equality
.
PEq Bool Source # | |
PEq Ordering Source # | |
PEq () Source # | |
PEq [k] Source # | |
PEq (Maybe k) Source # | |
PEq (NonEmpty k) Source # | |
PEq (Either k1 k2) Source # | |
PEq (k1, k2) Source # | |
PEq (k1, k2, k3) Source # | |
PEq (k1, k2, k3, k4) Source # | |
PEq (k1, k2, k3, k4, k5) Source # | |
PEq (k1, k2, k3, k4, k5, k6) Source # | |
PEq (k1, k2, k3, k4, k5, k6, k7) Source # | |
The singleton analogue of Eq
. Unlike the definition for Eq
, it is required
that instances define a body for '(%:==)'. You may also supply a body for '(%:/=)'.
(%:==) :: forall (a :: k) (b :: k). Sing a -> Sing b -> Sing (a :== b) infix 4 Source #
Boolean equality on singletons
(%:/=) :: forall (a :: k) (b :: k). Sing a -> Sing b -> Sing (a :/= b) infix 4 Source #
Boolean disequality on singletons
(%:/=) :: forall (a :: k) (b :: k). (a :/= b) ~ Not (a :== b) => Sing a -> Sing b -> Sing (a :/= b) infix 4 Source #
Boolean disequality on singletons
SEq Bool Source # | |
SEq Ordering Source # | |
SEq () Source # | |
SEq a => SEq [a] Source # | |
SEq a => SEq (Maybe a) Source # | |
SEq a => SEq (NonEmpty a) Source # | |
(SEq a, SEq b) => SEq (Either a b) Source # | |
(SEq a, SEq b) => SEq (a, b) Source # | |
(SEq a, SEq b, SEq c) => SEq (a, b, c) Source # | |
(SEq a, SEq b, SEq c, SEq d) => SEq (a, b, c, d) Source # | |
(SEq a, SEq b, SEq c, SEq d, SEq e) => SEq (a, b, c, d, e) Source # | |
(SEq a, SEq b, SEq c, SEq d, SEq e, SEq f) => SEq (a, b, c, d, e, f) Source # | |
(SEq a, SEq b, SEq c, SEq d, SEq e, SEq f, SEq g) => SEq (a, b, c, d, e, f, g) Source # | |