-
I have the following implementation that requires the
How can I remove it? I would like to retain the ability to have the implementation of my function execute in See https://github.com/haskell-works/effectful-zoo/pull/4/files#r1852196188 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can't 🤔 Statically dispatched effects are supposed to be (for the lack of a better word) primitive, i.e. only use If you find yourself in a situation of combining multiple effects in core functions of such effect, you actually want dynamic dispatch with all of its perks. |
Beta Was this translation helpful? Give feedback.
You can't 🤔
Statically dispatched effects are supposed to be (for the lack of a better word) primitive, i.e. only use
IO
and data associated with yourStaticRep
instance. I think this needs more emphasis in the documentation.If you find yourself in a situation of combining multiple effects in core functions of such effect, you actually want dynamic dispatch with all of its perks.