Skip to content

active-group/kotlin-free-monad

Repository files navigation

(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, and includes documentation.

Examples are here.

About

Support for free-monad-based DSLs in Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages