Skip to content

Commit

Permalink
eqLaws: Use "Reflexivity", "Symmetry" and "Transitivity" (#55)
Browse files Browse the repository at this point in the history
instead of "Reflexive", "Symmetric" and "Transitive".

This is consistent with how `semigroupLaws` and `monoidLaws` use
"Associativity" and "Identity".

It is also consistent with the terminology used in the Haddocks of
`base`:
https://hackage.haskell.org/package/base-4.19.0.0/docs/Data-Eq.html#t:Eq

My practical motivation for this change is that it will make the output
for `hspec` consistent and grammatically correct. (see
#41 (comment))
  • Loading branch information
sol authored Nov 15, 2023
1 parent 0885f02 commit c97c4aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Hedgehog/Classes/Eq.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import Hedgehog.Classes.Common
-- [__Negation__]: @x '/=' y@ ≡ @'not' (x '==' y)@
eqLaws :: (Eq a, Show a) => Gen a -> Laws
eqLaws gen = Laws "Eq"
[ ("Transitive", eqTransitive gen)
, ("Symmetric", eqSymmetric gen)
, ("Reflexive", eqReflexive gen)
[ ("Transitivity", eqTransitive gen)
, ("Symmetry", eqSymmetric gen)
, ("Reflexivity", eqReflexive gen)
, ("Negation", eqNegation gen)
]

Expand Down

0 comments on commit c97c4aa

Please sign in to comment.