Replies: 1 comment 3 replies
-
Your
would make more sense, it would be then "in order to run the Foo effect you need the Blah effect" and you could use Blah inside the handler. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have some Haskell code that I am rewriting from mtl to use effectful and have an issue when the handler needs to execute another effect. I've cooked up some bogus code to illustrate my problem. I added
Foo :> es
to the context ofrunFoo
to keep GHC happy abouti <- foo
and ended up with the code as below.However,
runEff . runFoo $ foo
complains that there is no Foo in context. I have tried tinkering withinterpose
inrunFoo
handler, but I don't understand the library well enough to figure this out. Help would be much appreciated.Beta Was this translation helpful? Give feedback.
All reactions