ghostdogpr / purelogic   0.2.0

Apache License 2.0 Website GitHub

Direct-style pure domain logic for Scala

Scala versions: 3.x
Scala.js versions: 1.x
Scala Native versions: 0.5

PureLogic

PureLogic is a Scala open source library for writing direct-style, pure business logic using context functions (aka capabilities).

It is designed to be monad-free, meaning that effects like Reader, Writer, State, and Abort compose naturally through Scala 3's given/using mechanism instead of monad transformers or for-comprehensions.

It provides an opinionated way to write pure domain logic in Scala, using a limited set of primitives.

It has zero dependencies and is available for Scala 3.3.x LTS and later versions for Scala JVM, Scala.js, and Scala Native.

Consult the Documentation to learn how to use PureLogic.