http://kika.livejournal.com/ ([identity profile] kika.livejournal.com) wrote in [personal profile] juan_gandhi 2016-08-18 06:38 am (UTC)

Re: Не знаю, можно ли посчитать Ñ

> monad transformers for combining multiple effects.

This is a Haskell problem, not the fundamental one.

doFiles::forall e. Eff (fs::FS, console::CONSOLE|e) Unit
doHttp::forall e. Eff (http::HTTP, console::CONSOLE|e) Unit

doStuff::forall e. Eff (fs::FS, console::CONSOLE, http::HTTP|e) Unit
doFiles <<< doHTTP

You can also handle effect, which means you remove the effect from the row and once you get to the Eff () you can runPure and transform the effectful computation into the pure one. Bingo.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting