graphql-engine/server/src-lib/Data/Aeson/Extended.hs

14 lines
363 B
Haskell
Raw Normal View History

2019-04-17 12:48:41 +03:00
module Data.Aeson.Extended
( module J
, encodeToStrictText
) where
import Hasura.Prelude
import Data.Aeson as J
import qualified Data.Aeson.Text as JT
import qualified Data.Text.Lazy as LT
encodeToStrictText :: (ToJSON a) => a -> Text
encodeToStrictText = LT.toStrict . JT.encodeToLazyText