Skip to content

Commit

Permalink
chore: Deprecate rsPretty and prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
k0ral committed Oct 31, 2024
1 parent 2073d94 commit 4359b19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xml-conduit/src/Text/XML/Stream/Render.hs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ renderBytes rs = renderBuilder rs .| builderToByteString
renderText :: (PrimMonad m, MonadThrow m) => RenderSettings -> ConduitT Event Text m ()
renderText rs = renderBytes rs .| decodeUtf8C

{-# DEPRECATED rsPretty "Will be removed in future versions of `xml-conduit`. See <https://github.com/snoyberg/xml/issues/196>." #-}
data RenderSettings = RenderSettings
{ rsPretty :: Bool
, rsNamespaces :: [(Text, Text)]
Expand Down Expand Up @@ -293,6 +294,7 @@ getPrefix ppref nsmap ns =

-- | Convert a stream of 'Event's into a prettified one, adding extra
-- whitespace. Note that this can change the meaning of your XML.
{-# DEPRECATED prettify "Will be removed in future versions of `xml-conduit`. See <https://github.com/snoyberg/xml/issues/196>." #-}
prettify :: Monad m => ConduitT (Flush Event) (Flush Event) m ()
prettify = prettify' 0

Expand Down

0 comments on commit 4359b19

Please sign in to comment.