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

Safe Haskell | None
Language | Haskell2010

Data.Derive.Ref

Description

A pseudo derivation. For each field in the data type, deriving `Ref` generates `ref` FieldName`= Ref { select =` fieldName`, update = f v -> v {` fieldName`= f (`fieldName `v) } }`.

This is intended for use with the compositional functional references described in http://www.haskell.org/pipermail/haskell-cafe/2007-June/026477.html.

# Documentation

makeRef :: Derivation Source #