This adds an Aeson-inspired ability to configure how deriveEsqueletoRecord generates the SQL record type, in particular which names it generates for the record type itself and its fields.
This is because DuplicateRecordFields is a painful extension to use, and avoiding it through module structuring is also painful. A nicer solution for avoiding duplicate record fields is to simply not generate them, and allow the user to specify how record fields should be generated so they don't overlap.
This adds an Aeson-inspired ability to configure how
deriveEsqueletoRecord
generates the SQL record type, in particular which names it generates for the record type itself and its fields.This is because
DuplicateRecordFields
is a painful extension to use, and avoiding it through module structuring is also painful. A nicer solution for avoiding duplicate record fields is to simply not generate them, and allow the user to specify how record fields should be generated so they don't overlap.Before submitting your PR, check that you've:
@since
declarations to the Haddock.stylish-haskell
and otherwise adhered to the style guide.After submitting your PR: