module Data.Aeson.Types
(
Value(..)
, Key
, Encoding
, unsafeToEncoding
, fromEncoding
, Series
, Array
, emptyArray
, Pair
, Object
, emptyObject
, DotNetTime(..)
, typeMismatch
, unexpected
, Parser
, Result(..)
, FromJSON(..)
, fromJSON
, parse
, parseEither
, parseMaybe
, parseFail
, modifyFailure
, prependFailure
, parserThrowError
, parserCatchError
, IResult (..)
, ifromJSON
, iparse
, iparseEither
, ToJSON(..)
, KeyValue(..)
, KeyValueOmit(..)
, ToJSONKey(..)
, ToJSONKeyFunction(..)
, toJSONKeyText
, toJSONKeyKey
, contramapToJSONKeyFunction
, FromJSONKey(..)
, FromJSONKeyFunction(..)
, fromJSONKeyCoerce
, coerceFromJSONKeyFunction
, mapFromJSONKeyFunction
, GToJSONKey()
, genericToJSONKey
, GFromJSONKey()
, genericFromJSONKey
, FromJSON1(..)
, parseJSON1
, omittedField1
, FromJSON2(..)
, parseJSON2
, omittedField2
, ToJSON1(..)
, toJSON1
, toEncoding1
, omitField1
, ToJSON2(..)
, toJSON2
, toEncoding2
, omitField2
, GFromJSON
, FromArgs
, GToJSON
, GToEncoding
, GToJSON'
, ToArgs
, Zero
, One
, genericToJSON
, genericLiftToJSON
, genericToEncoding
, genericLiftToEncoding
, genericParseJSON
, genericLiftParseJSON
, withObject
, withText
, withArray
, withScientific
, withBool
, withEmbeddedJSON
, pairs
, foldable
, (.:)
, (.:?)
, (.:!)
, (.!=)
, (.:?=)
, (.:!=)
, object
, parseField
, parseFieldMaybe
, parseFieldMaybe'
, parseFieldOmit
, parseFieldOmit'
, explicitParseField
, explicitParseFieldMaybe
, explicitParseFieldMaybe'
, explicitParseFieldOmit
, explicitParseFieldOmit'
, listEncoding
, listValue
, listParser
, Options
, fieldLabelModifier
, constructorTagModifier
, allNullaryToStringTag
, omitNothingFields
, allowOmittedFields
, sumEncoding
, unwrapUnaryRecords
, tagSingleConstructors
, rejectUnknownFields
, SumEncoding(..)
, camelTo
, camelTo2
, defaultOptions
, defaultTaggedObject
, JSONKeyOptions
, keyModifier
, defaultJSONKeyOptions
, AesonException (..)
, (<?>)
, JSONPath
, JSONPathElement(..)
, formatPath
, formatRelativePath
, formatError
) where
import Data.Aeson.Encoding (Encoding, unsafeToEncoding, fromEncoding, Series, pairs)
import Data.Aeson.Types.Class
import Data.Aeson.Types.Internal
import Data.Foldable (toList)
foldable :: (Foldable t, ToJSON a) => t a -> Encoding
foldable :: forall (t :: * -> *) a. (Foldable t, ToJSON a) => t a -> Encoding
foldable = [a] -> Encoding
forall a. ToJSON a => a -> Encoding
toEncoding ([a] -> Encoding) -> (t a -> [a]) -> t a -> Encoding
forall b c a. (b -> c) -> (a -> b) -> a -> c
. t a -> [a]
forall a. t a -> [a]
forall (t :: * -> *) a. Foldable t => t a -> [a]
toList
{-# INLINE foldable #-}