Closed rszczers closed 4 years ago
Unfortunately, due to the usage of the hedgehog-classes library, I can't merge this to the project, as I'd like to support three latest major GHC versions, however hedgehog-classes limits this intentionally.
I really appreciate your help, but closing the PR and will implement this shortly by hands.
I've played around with hedgehog-classes and your library in hope to solve #5. I guess I found a minor bug with
mconcat
: the monoid instance didn't obey the concatenation law (i.e.mconcat ≡ foldr mappend mempty
). Consecutively, there were also problems with associativity and right identity monad laws; here's relevant part of test log:So
mconcat
concatenated lists in a wrong order, I guess. I flipped just here(xL ++ l, s + xS)
to(l ++ xL, s + xS)
and now all tests are passing fine :-)