Back to Developer Roadmap

Magnolia

src/data/roadmaps/scala/content/magnolia@YWog0o_t3XWQgGpjkzsnd.md

4.0802 B
Original Source

Magnolia

Magnolia is a generic macro for automatic materialization of typeclasses for datatypes composed from case classes (products) and sealed traits (coproducts). It supports recursively-defined datatypes out-of-the-box and incurs no significant time penalty during compilation. Magnolia provides a simple interface for handling products and coproducts, which is then used by the Magnolia macro to derive typeclasses automatically.

Visit the following resources to learn more: