| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
JsonToHaskell.Internal.Options
Synopsis
- data NumberType
- data TextType
- data MapType
- = UseMap
- | UseHashMap
- data ListType
- data Options = Options {}
- textType :: Lens' Options TextType
- tabStop :: Lens' Options Int
- strictData :: Lens' Options Bool
- prefixRecordFields :: Lens' Options Bool
- numberType :: Lens' Options NumberType
- mapType :: Lens' Options MapType
- listType :: Lens' Options ListType
- includeInstances :: Lens' Options Bool
- includeHeader :: Lens' Options Bool
- simpleOptions :: Options
- performantOptions :: Options
Documentation
data NumberType Source #
Choose which type to use for Numbers
Constructors
| UseSmartFloats | |
| UseSmartDoubles | |
| UseFloats | Use |
| UseDoubles | Use |
| UseScientific | Use |
Instances
| Eq NumberType Source # | |
Defined in JsonToHaskell.Internal.Options | |
| Show NumberType Source # | |
Defined in JsonToHaskell.Internal.Options Methods showsPrec :: Int -> NumberType -> ShowS # show :: NumberType -> String # showList :: [NumberType] -> ShowS # | |
Choose which type to use for strings
Constructors
| UseString | Use |
| UseText | Use |
| UseByteString | Use |
Choose which type to use for key-value maps
Constructors
| UseMap | Use Data.Map |
| UseHashMap | Use Data.HashMap |
Options for module generation
Constructors
| Options | |
Fields
| |
simpleOptions :: Options Source #
Simple module generation options. These are reasonable defaults for a simple module
performantOptions :: Options Source #
Use more performant data types, use these for production apps.