on master help sign in
Add speculative changelog info.
commit8e05045f6d9df419bd162e61c079ae01353240d8 authorgmorpheme <github@gmorpheme.net> dateFri 1 Feb 2019, 09:21 (8 years ago) parent3ca60fe
2 files changed+20−1
libyaml/src/Text/Libyaml.hs+16−1 yaml/ChangeLog.md+4
libyaml/src/Text/Libyaml.hs+16−1
@@ -671,16 +671,31 @@ parserParseOne' parser = allocaBytes eventSize $ \er -> do
671671 return $ Left $ YamlParseException problem context problemMark
672672 else Right <$> getEvent er
673673
674−
674+-- | Whether a tag should be rendered explicitly in the output or left
675+-- implicit.
676+--
677+-- @since 0.11.1.0
675678data TagRender = Explicit | Implicit
676679 deriving (Enum)
677680
681+-- | A value for 'formatOptionsRenderCollectionTags' that renders no
682+-- tags.
683+--
684+-- @since 0.11.1.0
678685renderNone :: Event -> TagRender
679686renderNone _ = Implicit
680687
688+-- | A value for 'formatOptionsRenderCollectionTags' that renders all
689+-- tags.
690+--
691+-- @since 0.11.1.0
681692renderAll :: Event -> TagRender
682693renderAll _ = Explicit
683694
695+-- | A value for 'formatOptionsRenderCollectionTags' that renders tags
696+-- which are instances of 'UriTag'
697+--
698+-- @since 0.11.1.0
684699renderUriTags :: Event -> TagRender
685700renderUriTags (EventScalar _ UriTag{} _ _) = Explicit
686701renderUriTags (EventSequenceStart UriTag{} _ _) = Explicit
yaml/ChangeLog.md+4
@@ -1,5 +1,9 @@
11# ChangeLog for yaml
22
3+## 0.11.1.0
4+
5+* Add an option to `FormatOptions` to govern when tags on collections are rendered explicitly and when they are left implicit. [#165](https://github.com/snoyberg/yaml/issues/165)
6+
37## 0.11.0.0
48
59* Split out the `libyaml` and `Text.Libyaml` code into its own package. [#145](https://github.com/snoyberg/yaml/issues/145)