Copyright | (C) 2013 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (eir@cis.upenn.edu) |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Defines the SEq singleton version of the Eq type class.
Documentation
class (kproxy ~ KProxy) => PEq kproxy Source
The promoted analogue of Eq
. If you supply no definition for '(:==)',
then it defaults to a use of '(==)', from Data.Type.Equality
.
PEq Bool (KProxy Bool) Source | |
PEq Ordering (KProxy Ordering) Source | |
PEq () (KProxy ()) Source | |
PEq [k] (KProxy [k]) Source | |
PEq (Maybe k) (KProxy (Maybe k)) Source | |
PEq (Either k k) (KProxy (Either k k)) Source | |
PEq ((,) k k) (KProxy ((,) k k)) Source | |
PEq ((,,) k k k) (KProxy ((,,) k k k)) Source | |
PEq ((,,,) k k k k) (KProxy ((,,,) k k k k)) Source | |
PEq ((,,,,) k k k k k) (KProxy ((,,,,) k k k k k)) Source | |
PEq ((,,,,,) k k k k k k) (KProxy ((,,,,,) k k k k k k)) Source | |
PEq ((,,,,,,) k k k k k k k) (KProxy ((,,,,,,) k k k k k k k)) Source |
class (kparam ~ KProxy) => SEq kparam where 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 b. Sing a -> Sing b -> Sing (a :== b) infix 4 Source
Boolean equality on singletons
(%:/=) :: forall a b. Sing a -> Sing b -> Sing (a :/= b) infix 4 Source
Boolean disequality on singletons
SEq Bool (KProxy Bool) Source | |
SEq Ordering (KProxy Ordering) Source | |
SEq () (KProxy ()) Source | |
SEq a0 (KProxy a0) => SEq [a] (KProxy [a]) Source | |
SEq a0 (KProxy a0) => SEq (Maybe a) (KProxy (Maybe a)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0)) => SEq (Either a b) (KProxy (Either a b)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0)) => SEq ((,) a b) (KProxy ((,) a b)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0), SEq c0 (KProxy c0)) => SEq ((,,) a b c) (KProxy ((,,) a b c)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0), SEq c0 (KProxy c0), SEq d0 (KProxy d0)) => SEq ((,,,) a b c d) (KProxy ((,,,) a b c d)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0), SEq c0 (KProxy c0), SEq d0 (KProxy d0), SEq e0 (KProxy e0)) => SEq ((,,,,) a b c d e) (KProxy ((,,,,) a b c d e)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0), SEq c0 (KProxy c0), SEq d0 (KProxy d0), SEq e0 (KProxy e0), SEq f0 (KProxy f0)) => SEq ((,,,,,) a b c d e f) (KProxy ((,,,,,) a b c d e f)) Source | |
(SEq a0 (KProxy a0), SEq b0 (KProxy b0), SEq c0 (KProxy c0), SEq d0 (KProxy d0), SEq e0 (KProxy e0), SEq f0 (KProxy f0), SEq g0 (KProxy g0)) => SEq ((,,,,,,) a b c d e f g) (KProxy ((,,,,,,) a b c d e f g)) Source |