mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 18:42:30 +03:00
14 lines
363 B
Haskell
14 lines
363 B
Haskell
|
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
|