Modifying fields when generating Haskell types


#1

I have a set of types (mostly records) written in Dhall that I’m importing into Haskell (treating my Dhall types as the single source of truth). I’d now like to create lenses (using makeFields from Control.Lens) out of the imported Dhall types, but the Lens package requires prefixing fields with_ or the type name. I found an issue that lead to implementing field modifiers going from Haskell to Dhall. Is it possible to configure modifiers when generating types from Dhall in Haskell?


#2

@joefiorini: There is not yet a way to implement field name modifiers when generating Haskell types from Dhall types