These were the changes I needed to make in order to use hspec-wai's testing combinators with hedgehog state machine testing. The important changes are:
Add MonadCatch and MonadThrow instances for WaiSession, as these are required by executeSequential in hedgehog and already implemented for Session.
Export runWaiSession from Test.Hspec.Wai so the WaiSession may be run once the test actions have been built.
I'm aware that runWaiSession can be imported from Test.Hspec.Wai.Internal, but given its importance I thought it made sense to make it part of the public API.
These were the changes I needed to make in order to use
hspec-wai
's testing combinators with hedgehog state machine testing. The important changes are:MonadCatch
andMonadThrow
instances forWaiSession
, as these are required byexecuteSequential
in hedgehog and already implemented forSession
.runWaiSession
fromTest.Hspec.Wai
so theWaiSession
may be run once the test actions have been built.I'm aware that
runWaiSession
can be imported fromTest.Hspec.Wai.Internal
, but given its importance I thought it made sense to make it part of the public API.