Monad transformers are a neat way to compose effectul computations: pass some configuration, read/write from disk, track errors... However they can be a bit cumbersome to deal with, especially if you want to use different stacks sharing some common effects: for example a stack to interact with AWS and another one for Hadoop computations.

This talk will shortly introduce monad transformers in Scala and their drawbacks then present the Eff monad.

The Eff monad has some really interesting properties:

effects can be developed completely independently from each other
effects can be interpreted in different ways and the interpreters can be composed together
it is based on an efficient "Free monad" (avoiding the issue of quadratic flatMaps)
with the Eff monad you will never have to re-implement the Monad operations (point / flatMap) again!

# Uploaded 1,060 Plays 0 Comments

flatMap(Oslo) 2016

Arktekk AS PRO

flatMap(Oslo) is a functional programming conference with focus on Scala and the Java Virtual Machine

Browse This Channel

Shout Box

Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.