Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data EqCheck wA wB where Source #
EqCheck
is used to pass around evidence (or lack thereof) of
two witness types being equal.
An witness aware equality class.
A minimal definition defines any one of unsafeCompare
, =\/=
and =/\=
.
unsafeCompare :: p wA wB -> p wC wD -> Bool Source #
It is unsafe to define a class instance via this method, because
if it returns True then the default implementations of =\/=
and =/\=
will coerce the equality of two witnesses.
Calling this method is safe, although =\/=
or =/\=
would be better
choices as it is not usually meaningul to compare two patches that
don't share either a starting or an ending context
(=\/=) :: p wA wB -> p wA wC -> EqCheck wB wC infix 4 Source #
Compare two things with the same starting witness. If the things compare equal, evidence of the ending witnesses being equal will be returned.
(=/\=) :: p wA wC -> p wB wC -> EqCheck wA wB infix 4 Source #
Compare two things with the same ending witness. If the things compare equal, evidence of the starting witnesses being equal will be returned.
Eq2 DirPatchType Source # | |
Eq2 FilePatchType Source # | |
Eq2 Prim Source # | |
Eq2 Prim Source # | |
Eq2 HunkMove Source # | |
Eq2 Hunk Source # | |
Eq2 WPatchInfo Source # | |
Eq2 Prim Source # | |
Eq2 Prim Source # | |
Eq2 DummyPatch Source # | |
Eq2 p => Eq2 (LabelledPatch p) Source # | |
(Commute p, Eq2 p) => Eq2 (Named p) Source # | |
Eq2 (RebaseName p) Source # | |
Eq2 (PrimOf p) => Eq2 (RebaseFixup p) Source # | |
(PrimPatchBase p, Commute p, Eq2 p) => Eq2 (RebaseSelect p) Source # | |
PrimPatch prim => Eq2 (RepoPatchV2 prim) Source # | |
(Eq2 a, Eq2 b) => Eq2 ((:>) a b) Source # | |
Eq2 (PatchInfoAnd rt p) Source # | |