Skip to content

Using sandwich with IO and MonadError #78

Answered by thomasjm
flip111 asked this question in Q&A
Discussion options

You must be logged in to vote

The first error is because you're calling expectationFailure outside of an ExampleT. In general all the actual effectful test code should be wrapped in it blocks--if you move the it line to just after the describe line then it should work.

For the second error, I'm not sure what MonadPipe is but it's possible we don't have suitable instances yet for ExampleT. It's possible we could add a MonadError instance if that's all it needs. Are you trying to use this? It seems all that needs is MonadIO.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomasjm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants