derive-2.5.23: A program and library to derive instances for data types

Safe Haskell | None
Language | Haskell98

Data.Derive.Set

Description

A pseudo derivation. For each field in the data type, deriving `Set` generates `set` FieldName `v x = x{`fieldName`= v}`. This derivation is intended to work around the fact that in Haskell assigning to a field is not a first class object (although extracting from a field is).

# Documentation

makeSet :: Derivation Source