-
My question is, must the "higher level" effect always be dynamically dispatched? To make it concrete, suppose I wanted to write an effect |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes. If you want to depend on an existing effect, it has to be dynamically dispatched. Static effects are primitive in a sense as they can't use other effects. But considering that the |
Beta Was this translation helpful? Give feedback.
Yes. If you want to depend on an existing effect, it has to be dynamically dispatched. Static effects are primitive in a sense as they can't use other effects.
But considering that the
FileSystem
effect itself is static and just a thin wrapper for stuff frombase
/bytestring
, you can just makehello
use hPutStrLn (orwriteFile
) directly.