ihaskell-aeson 0.2.0.0 → 0.3.0.0
raw patch · 2 files changed
+16/−13 lines, 2 filesdep +bytestringdep +textdep −chunked-datadep −classy-preludedep ~base
Dependencies added: bytestring, text
Dependencies removed: chunked-data, classy-prelude
Dependency ranges changed: base
Files
- IHaskell/Display/Aeson.hs +12/−9
- ihaskell-aeson.cabal +4/−4
IHaskell/Display/Aeson.hs view
@@ -1,16 +1,19 @@-{-# LANGUAGE NoImplicitPrelude, TypeSynonymInstances, QuasiQuotes #-}+{-# LANGUAGE TypeSynonymInstances, QuasiQuotes #-}+ module IHaskell.Display.Aeson () where -import ClassyPrelude-import Data.Textual.Encoding-import Data.Aeson-import Data.Aeson.Encode.Pretty-import Data.String.Here+import Data.Text as T+import Data.ByteString.Lazy as LBS+import Data.Text.Encoding as E -import IHaskell.Display+import Data.Aeson+import Data.Aeson.Encode.Pretty+import Data.String.Here +import IHaskell.Display+ instance IHaskellDisplay Value where display renderable = return $ Display [plain json, html dom]- where - json = unpack $ decodeUtf8 $ encodePretty renderable+ where+ json = T.unpack $ E.decodeUtf8 $ LBS.toStrict $ encodePretty renderable dom = [i|<div class="highlight-code" id="javascript">${json}</div>|]
ihaskell-aeson.cabal view
@@ -7,7 +7,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.2.0.0+version: 0.3.0.0 -- A short (one-line) description of the package. synopsis: IHaskell display instances for Aeson@@ -57,12 +57,12 @@ OverloadedStrings -- Other library packages from which modules are imported.- build-depends: base ==4.6.* || ==4.7.*,+ build-depends: base >=4.6 && <4.9, here,- classy-prelude >=0.7,+ text,+ bytestring, aeson >= 0.7, aeson-pretty >= 0.7,- chunked-data >=0.1, ihaskell >= 0.5 -- Directories containing source files.