Skip to main content
Version: 2.0.x

Core Data Types

In this section we are going to talk about the basic data types that are required to build a ZIO application:

  • ZIOZIO is a value that models an effectful program, which might fail or succeed.
    • UIOUIO[A] is a type alias for ZIO[Any, Nothing, A].
    • URIOURIO[R, A] is a type alias for ZIO[R, Nothing, A].
    • TaskTask[A] is a type alias for ZIO[Any, Throwable, A].
    • RIORIO[R, A] is a type alias for ZIO[R, Throwable, A].
    • IOIO[E, A] is a type alias for ZIO[Any, E, A].
  • ZIOAppZIOApp and the ZIOAppDefault are entry points for ZIO applications.
  • RuntimeRuntime[R] is capable of executing tasks within an environment R.
  • ExitExit[E, A] describes the result of executing an IO value.
  • CauseCause[E] is a description of a full story of a fiber failure.