Skip to content

How to Properly Integrate Effectful with Hedgehog Using H.evalIO and H.evalM? #273

Answered by arybczak
newhoggy asked this question in Q&A
Discussion options

You must be logged in to vote

Yeah, but you already wrote liftTest here: https://github.com/haskell-works/effectful-zoo/blob/main/components/hedgehog/Effectful/Zoo/Hedgehog/Api/Lift.hs, so you have all the components.

It looks to me that you should make LiftTest an operation of your effect, then define an instance like described here: https://hackage.haskell.org/package/effectful-core-2.5.0.0/docs/Effectful-Dispatch-Dynamic.html#g:4 and then you can just use evalM from the hedgehog library with Eff.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@arybczak
Comment options

@newhoggy
Comment options

@arybczak
Comment options

Answer selected by newhoggy
@newhoggy
Comment options

@arybczak
Comment options

@newhoggy
Comment options

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