generic-validation.md Generic validation of nested data TLDR This technique helps validate arbitrary conditions in deeply nested structures without writing additional code — with the help of Haskell Generics. It boils down to this pattern: validate :: a 'Raw -> Validation (ErrorMap es) (a 'Valid) getError :: HasError e es => ErrorMap es -> e If you are interested in how to achieve this, read on. I