extract-cons-1.0.0.0
Safe HaskellNone
LanguageHaskell2010

Data.Constructor.Extract.Options

Documentation

data ExtractOptions Source #

Constructors

MkExtractOptions 

Fields

  • newDataName :: String -> String

    Build the name of the `data` to generate using the constructor's name given as parameter

  • newConName :: String -> String

    Build the name of the constructor to generate using the original constructor's name

  • deriveClasses :: [Name]

    Add _deriving_ declaration when generating the new data type. **WARNING**: This is not guaranteed to type-check. Basic classes like Eq and Ord will work.