Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
UseSmartFloats | |
UseSmartDoubles | |
UseFloats | Use |
UseDoubles | Use |
UseScientific | Use |
Instances
Eq NumberType Source # | |
Defined in JsonToHaskell.Internal.Options (==) :: NumberType -> NumberType -> Bool # (/=) :: NumberType -> NumberType -> Bool # | |
Ord NumberType Source # | |
Defined in JsonToHaskell.Internal.Options compare :: NumberType -> NumberType -> Ordering # (<) :: NumberType -> NumberType -> Bool # (<=) :: NumberType -> NumberType -> Bool # (>) :: NumberType -> NumberType -> Bool # (>=) :: NumberType -> NumberType -> Bool # max :: NumberType -> NumberType -> NumberType # min :: NumberType -> NumberType -> NumberType # | |
Show NumberType Source # | |
Defined in JsonToHaskell.Internal.Options showsPrec :: Int -> NumberType -> ShowS # show :: NumberType -> String # showList :: [NumberType] -> ShowS # |
Choose which type to use for strings
UseString | Use |
UseText | Use |
UseByteString | Use |
Choose which type to use for key-value maps
UseMap | Use Data.Map |
UseHashMap | Use Data.HashMap |
Choose which type to use for arrays
Options for module generation
Options | |
|
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.