-
I'm working on implementing a custom interpreter for an The interpreter I'm working on looks like this: I'm running into difficulty because https://hackage.haskell.org/package/hedgehog-1.5/docs/src/Hedgehog.Internal.Property.html#evalM What should I do here? I'm okay if it calls |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
I have a work around:
But I'm still interested to know if the thing I was trying to do is more straightforwardly possible. |
Beta Was this translation helpful? Give feedback.
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 useevalM
from thehedgehog
library withEff
.