haskell-hedgehog-classes icon indicating copy to clipboard operation
haskell-hedgehog-classes copied to clipboard

consolidate `Laws` with `Group`?

Open chessai opened this issue 5 years ago • 0 comments

These are a bit different, since the intention of Group is more general, whereas Laws is meant to indicate just a test involving a typeclass law(s).

Here are their respective definitions:

data Group = Group
  { groupName :: GroupName
  , groupProperties :: [(PropertyName, Property)]
  }

data Laws = Laws
  { lawsTypeClass :: String
  , lawsProperties :: [(String, Property)] -- ^ (law name, property)
  } 

chessai avatar Nov 12 '19 01:11 chessai