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

https://github.com/active-group/kotlin-free-monad

Support for free-monad-based DSLs in Kotlin
https://github.com/active-group/kotlin-free-monad

Last synced: about 2 months ago
JSON representation

Support for free-monad-based DSLs in Kotlin

Awesome Lists containing this project

README

          

# (Free) Monads for Kotlin

This is a small Kotlin library to simplify implementing monadic DSLs
in Kotlin, through the use of `suspend` functions and the compiler's
CPS transformation.

It is described at length in a JavaSPEKTRUM 2023 article *Monaden in
Kotlin* by Michael Sperber and Benedikt Stemmildt.

The code is [here](src/main/kotlin/de/activegroup/MonadDSL.kt), and
includes documentation.

Examples are [here](src/test/kotlin/de/activegroup).