Skip to main content
Version: ZIO 2.x

Introduction to ZIO Prelude

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 Validation and NonEmptyList to 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.

Installation

Include ZIO Prelude in your project by adding the following to your build.sbt file:

libraryDependencies += "dev.zio" %% "zio-prelude" % "1.0.0-RC16"