{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Data.Aeson.Extra (
encodeStrict,
SymTag(..),
SingObject(..),
mkSingObject,
getSingObject,
CollapsedList(..),
getCollapsedList,
parseCollapsedList,
ValueF(..),
ObjectF,
ArrayF,
merge,
lodashMerge,
streamDecode,
mkValue,
mkValue',
) where
import Prelude ()
import Prelude.Compat
import Data.Aeson
import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as LBS
import Data.Aeson.Extra.CollapsedList
import Data.Aeson.Extra.Merge
import Data.Aeson.Extra.Recursive ()
import Data.Aeson.Extra.SingObject
import Data.Aeson.Extra.Stream
import Data.Aeson.Extra.SymTag
import Data.Aeson.Extra.TH
encodeStrict :: ToJSON a => a -> BS.ByteString
encodeStrict :: a -> ByteString
encodeStrict = ByteString -> ByteString
LBS.toStrict (ByteString -> ByteString) -> (a -> ByteString) -> a -> ByteString
forall b c a. (b -> c) -> (a -> b) -> a -> c
. a -> ByteString
forall a. ToJSON a => a -> ByteString
encode