Skip to content

Allow custom record field prefix #121

Description

@turion

It would be great if one could prefix the generated record field names. I wrote some template haskell to call makeLenses (from the lens package) for all record types, but a typical naming scheme is data MyRecord = MyRecord { _myRecordFieldName :: T }, which would generate a lens myRecordFieldName :: Lens' MyRecord T. This naming scheme is not possible with the generated code here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions