<img height="1" width="1" src="https://www.facebook.com/tr?id=1076094119157733&amp;ev=PageView &amp;noscript=1">

Posted by Matt Roberts
Mon, Jun 5, 2017

Posted by Carl Pulley
Sat, Feb 11, 2017

In this blog post we explain how Typesafe configuration data may be validated. To avoid unnecessary boilerplate code, we use Shapeless to aid the creation of a lightweight validation DSL. We finish off the post by showing how the use of sealed abstract classes can be leveraged to enforce validation constraints to be invariant.

Posted by Jaakko Pallari
Tue, May 31, 2016

Posted by Olivier Mélois
Fri, Apr 8, 2016

Introduction

This article aims at presenting an example of how the Shapeless library can be used to solve a problem in a generic manner, meaning "solving the same problem for any data-type, using the exact same code". I will start by presenting the problem and the solution, and will explain the mechanisms used by that solution, in the hope that it will demystify some of the magic behind Shapeless, that seem to scare some developers away.

Recent Posts

Posts by Topic

see all

Subscribe to Email Updates