Generalise test monoid instance

This commit is contained in:
George Thomas 2026-01-01 13:24:49 +00:00
parent f7c9297a85
commit 8442ce8dba

View File

@ -152,7 +152,7 @@ applyPuzzleParts e = \case
PuzzlePartsNil -> (HNil, []) PuzzlePartsNil -> (HNil, [])
PuzzlePartsCons f o ps -> let r = f e in bimap (HCons r) (o r :) $ applyPuzzleParts e ps PuzzlePartsCons f o ps -> let r = f e in bimap (HCons r) (o r :) $ applyPuzzleParts e ps
instance Semigroup (TestDefM '[] () ()) where instance Semigroup (TestDefM a b ()) where
(<>) = (>>) (<>) = (>>)
instance Monoid (TestDefM '[] () ()) where instance Monoid (TestDefM a b ()) where
mempty = pure () mempty = pure ()