packages feed

yaml-pretty-extras 0.0.1.1 → 0.0.1.2

raw patch · 3 files changed

+17/−7 lines, 3 filesdep +rio

Dependencies added: rio

Files

ChangeLog.md view
@@ -1,5 +1,10 @@ # Changelog for yaml-pretty-extras +## v0.0.1.2++Base on RIO+Add displayPrettyYaml function+ ## v0.0.1.1  Add dropNull to ToPrettyYaml typeclass
src/Data/Yaml/Pretty/Extras.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-}  module Data.Yaml.Pretty.Extras (@@ -7,19 +8,18 @@    ToPrettyYaml(..),   encodeFilePretty,+  displayPrettyYaml,   PrettyYamlException(..)  ) where -import Control.Applicative import Control.Error.Safe import Control.Monad.Except-import qualified Data.ByteString as BS-import Data.List-import Data.Typeable-import Data.Text import Data.Yaml import Data.Yaml.Pretty+import RIO hiding (tryJust)+import qualified RIO.ByteString as BS+import RIO.List  data PrettyYamlException = FieldNotListed Text [Text]   deriving (Typeable)@@ -42,3 +42,6 @@  encodeFilePretty :: ToPrettyYaml a => FilePath -> a -> IO () encodeFilePretty f x = BS.writeFile f (toPrettyYaml x)++displayPrettyYaml :: ToPrettyYaml a => a -> Utf8Builder+displayPrettyYaml = displayBytesUtf8 . toPrettyYaml
yaml-pretty-extras.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 35b8f036cce8b58878b94e77d8f07de52ec517ed3437adef721d4d13efa3d8bf+-- hash: cb8076c3936b0152125b8f51768620c7909fb2fa0dd869e45a6e842abc03e4a3  name:           yaml-pretty-extras-version:        0.0.1.1+version:        0.0.1.2 synopsis:       Extra functionality for pretty printing Yaml documents. description:    Extra functionality for pretty printing Yaml documents. Allows precise field ordering. category:       Data@@ -36,6 +36,7 @@     , bytestring     , errors     , mtl+    , rio     , text     , yaml   default-language: Haskell2010@@ -54,6 +55,7 @@     , errors     , hspec     , mtl+    , rio     , text     , yaml     , yaml-pretty-extras