Closed ocharles closed 1 year ago
I think with this you could actually deprecate hedgehog
and change the docs to not suggest pure () :: PropertyT m ()
, but I wanted to present just this change first.
@parsonsmatt ping.
Looks good! Mind updating changelog and doing a major version bump?
Done as a separate PR (#27) to not unnecessarily cause conflicts.
Thanks both!
Currently, one has to use the
hedgehog
identity function to force the type of the test to bePropertyT IO ()
. A better way to do this is to instead use an equality constraint in the instance head. This means that when we typecheckit
we encounterPropertyT m ()
as before, but we're now able to find an instance that matches. Refining the context will the forcem
to beIO
and everything works out fine.