@@ -104,7 +104,19 @@ module Data.Aeson.Types
104 , listParser
104 , listParser
106 -- * Generic and TH encoding configuration
106 -- * Generic and TH encoding configuration
107− , Options(..)
107+ , Options
109+ -- ** Options fields
111+ , fieldLabelModifier
112+ , constructorTagModifier
113+ , allNullaryToStringTag
116+ , unwrapUnaryRecords
117+ , tagSingleConstructors
119+ -- ** Options utilities
108 , SumEncoding(..)
120 , SumEncoding(..)
109 , camelTo
121 , camelTo
110 , camelTo2
122 , camelTo2
@@ -124,3 +136,6 @@ import Data.Foldable (toList)
124foldable :: (Foldable t, ToJSON a) => t a -> Encoding
136foldable :: (Foldable t, ToJSON a) => t a -> Encoding
125foldable = toEncoding . toList
137foldable = toEncoding . toList
126{-# INLINE foldable #-}
138{-# INLINE foldable #-}
141+-- The functions here are in fact record fields of the 'Options' type.