-
I'm interested in using Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
This isn't possible, but |
Beta Was this translation helpful? Give feedback.
-
Yes, please. |
Beta Was this translation helpful? Give feedback.
-
Btw, doesn't |
Beta Was this translation helpful? Give feedback.
-
BTW, I've managed to do this with |
Beta Was this translation helpful? Give feedback.
-
I was able to get Thanks for the suggestion @ocharles ! |
Beta Was this translation helpful? Give feedback.
-
I'm trying to implement The case that needs to be implemented is here: 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.
-
I figured out a way to support hedgehog property tests with effectful: |
Beta Was this translation helpful? Give feedback.
This isn't possible, but
PropertyT
is quite a strange monad that might not even possible to capture as an effect witheffectful
. What I have had success with is defining aTest
effect that models Hedgehog'sTestT
monad, along withevalEff
. This lets you combine effectful andMonadTest
, which has felt like the goth balance. If this is interesting let me know, as I've been meaning to tidy this up and open source it