json-to-haskell-0.1.1.2
Safe HaskellNone
LanguageHaskell2010

JsonToHaskell.Internal.Options

Synopsis

Documentation

data NumberType Source #

Choose which type to use for Numbers

Constructors

UseSmartFloats

Use Int for whole numbers, Float for decimals

UseSmartDoubles

Use Int for whole numbers, Double for decimals

UseFloats

Use Float for all numbers

UseDoubles

Use Double for all numbers

UseScientific

Use Scientific for all numbers

data TextType Source #

Choose which type to use for strings

Constructors

UseString

Use String for strings

UseText

Use Text for string

UseByteString

Use ByteString for strings

Instances

Instances details
Eq TextType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Ord TextType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Show TextType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

data MapType Source #

Choose which type to use for key-value maps

Constructors

UseMap

Use Data.Map

UseHashMap

Use Data.HashMap

Instances

Instances details
Eq MapType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Methods

(==) :: MapType -> MapType -> Bool #

(/=) :: MapType -> MapType -> Bool #

Ord MapType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Show MapType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

data ListType Source #

Choose which type to use for arrays

Constructors

UseList

Use lists

UseVector

Use vectors

Instances

Instances details
Eq ListType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Ord ListType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Show ListType Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

data Options Source #

Options for module generation

Instances

Instances details
Eq Options Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Methods

(==) :: Options -> Options -> Bool #

(/=) :: Options -> Options -> Bool #

Ord Options Source # 
Instance details

Defined in JsonToHaskell.Internal.Options

Show Options Source # 
Instance details

Defined in JsonToHaskell.Internal.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.