Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/battermann/state-monad-example

Sample code for blog post on combined state and either monad
https://github.com/battermann/state-monad-example

either-monad monad-transformers scala state-monad

Last synced: about 2 months ago
JSON representation

Sample code for blog post on combined state and either monad

Awesome Lists containing this project

README

        

# State Monad Examples in Scala

This repository contains the sample code for [Error and state handling with monad transformers in Scala](http://blog.leifbattermann.de/2017/10/08/error-and-state-handling-with-monad-transformers-in-scala/).

See how Id generation and error handling can be made purely functional by combining the state monad and the either monad with monad transformers in Scala.