What's new in the updated version?
- Updated to Scala 2.13.3
- Updated to ZIO 1.0.3
- Added some alternative ways for building
ZLayers
:ZIO#toLayer
,ZManaged#toLayer
,ZLayer#requires
,ZLayer#identity
Mocks in tests are automatically generated now, by using macros from
zio-test
- Introduced the
zio-macros
library, for generating capability accessors for application modules Added a Bonus Section with additional ways of combining
ZLayers
:<>
,<&>
,+!+
,>+>
First time with this e-book? You’ll learn:
- What is the new module structure
suggested by ZIO - ZIO new data types: ZLayer and Has
- How to reorganize ZIO tests
and mocks around ZLayers
- How to reorganize the ZIO application around ZLayers
- How to create and combine ZLayers, with
a horizontal and vertical composition - ZLayer type aliases