{-# LANGUAGE NoImplicitPrelude #-}
module Data.Aeson.Encode {-# DEPRECATED "Use Data.Aeson or Data.Aeson.Text instead" #-}
(
encode
, encodeToTextBuilder
) where
import Data.ByteString.Lazy (ByteString)
import Data.Text.Lazy.Builder (Builder)
import qualified Data.Aeson as A
import qualified Data.Aeson.Text as A
encode :: A.ToJSON a => a -> ByteString
encode :: a -> ByteString
encode = a -> ByteString
forall a. ToJSON a => a -> ByteString
A.encode
{-# DEPRECATED encode "Use encode from Data.Aeson" #-}
encodeToTextBuilder :: A.Value -> Builder
encodeToTextBuilder :: Value -> Builder
encodeToTextBuilder = Value -> Builder
forall a. ToJSON a => a -> Builder
A.encodeToTextBuilder
{-# DEPRECATED encodeToTextBuilder "Use encodeTotextBuilder from Data.Aeson.Text" #-}