ZIO Prelude is a library focused on providing a core set of functional data types and abstractions that can help you solve a variety of day to day problems. The tools provided by ZIO Prelude fall into the following main categories:
- Functional Abstractions - Functional abstractions to describe different ways of combining data, making it easy for you to combine complex data types in a principled way.
- Functional Data Types - Additional data types to supplement the ones in the Scala standard library such as
NonEmptyListto enable more accurate domain modeling and handle common problems like data validation.
- New Types - Zero overhead newtypes and refined newtypes to allow you to increase the type safety of your code base with zero overhead and minimal boilerplate.
- ZPure - A description of a computation that supports logging, context, state, and errors, providing all the functionality traditionally offered by monad transformers with dramatically better performance and ergonomics.
Include ZIO Prelude in your project by adding the following to your build.sbt file:
resolvers += Resolver.sonatypeRepo("snapshots") libraryDependencies += "dev.zio" %% "zio-prelude" % "0.0.0+1-3ceb5319-SNAPSHOT"