on master help sign in
Fix the version bump
commitb1aa6e9fb32aef876305171459d819d966876a1a authorMichael Snoyman <michael@snoyman.com> dateTue 12 Feb 2019, 10:58 (8 years ago) parentac1c995
4 files changed+11−11
libyaml/ChangeLog.md+4 libyaml/package.yaml+1−1 libyaml/src/Text/Libyaml.hs+6−6 yaml/ChangeLog.md−4
libyaml/ChangeLog.md+4
@@ -1,5 +1,9 @@
11# Changelog for libyaml
22
3+## 0.1.1.0
4+
5+* Add options to `FormatOptions` to govern when tags rendered explicitly and when they are left implicit. [#165](https://github.com/snoyberg/yaml/issues/165)
6+
37## 0.1.0.0
48
59* Split `libyaml` into a separate package from `yaml`. This split occurred at
libyaml/package.yaml+1−1
@@ -1,5 +1,5 @@
11name: libyaml
2−version: 0.1.0.0
2+version: 0.1.1.0
33synopsis: Low-level, streaming YAML interface.
44description: README and API documentation are available at <https://www.stackage.org/package/libyaml>
55category: Text
libyaml/src/Text/Libyaml.hs+6−6
@@ -681,7 +681,7 @@ parserParseOne' parser = allocaBytes eventSize $ \er -> do
681681-- | Whether a tag should be rendered explicitly in the output or left
682682-- implicit.
683683--
684−-- @since 0.11.1.0
684+-- @since 0.1.1.0
685685data TagRender = Explicit | Implicit
686686 deriving (Enum)
687687
@@ -693,7 +693,7 @@ toImplicitParam Implicit = 1
693693-- collection tags but all scalar tags (unless suppressed with styles
694694-- 'NoTag or 'PlainNoTag').
695695--
696−-- @since 0.11.1.0
696+-- @since 0.1.1.0
697697renderScalarTags :: Event -> TagRender
698698renderScalarTags (EventScalar _ _ _ _) = Explicit
699699renderScalarTags (EventSequenceStart _ _ _) = Implicit
@@ -703,21 +703,21 @@ renderScalarTags _ = Implicit
703703-- | A value for 'formatOptionsRenderTags' that renders all
704704-- tags (except 'NoTag' tag and 'PlainNoTag' style).
705705--
706−-- @since 0.11.1.0
706+-- @since 0.1.1.0
707707renderAllTags :: Event -> TagRender
708708renderAllTags _ = Explicit
709709
710710-- | A value for 'formatOptionsRenderTags' that renders no
711711-- tags.
712712--
713−-- @since 0.11.1.0
713+-- @since 0.1.1.0
714714renderNoTags :: Event -> TagRender
715715renderNoTags _ = Implicit
716716
717717-- | A value for 'formatOptionsRenderCollectionTags' that renders tags
718718-- which are instances of 'UriTag'
719719--
720−-- @since 0.11.1.0
720+-- @since 0.1.1.0
721721renderUriTags :: Event -> TagRender
722722renderUriTags (EventScalar _ UriTag{} _ _) = Explicit
723723renderUriTags (EventSequenceStart UriTag{} _ _) = Explicit
@@ -748,7 +748,7 @@ setWidth w opts = opts { formatOptionsWidth = w }
748748
749749-- | Control when and whether tags are rendered to output.
750750--
751−-- @since 0.11.1.0
751+-- @since 0.1.1.0
752752setTagRendering :: (Event -> TagRender) -> FormatOptions -> FormatOptions
753753setTagRendering f opts = opts { formatOptionsRenderTags = f }
754754
yaml/ChangeLog.md−4
@@ -1,9 +1,5 @@
11# ChangeLog for yaml
22
3−## 0.11.1.0
4−
5−* Add options to `FormatOptions` to govern when tags rendered explicitly and when they are left implicit. [#165](https://github.com/snoyberg/yaml/issues/165)
6−
73## 0.11.0.0
84
95* Split out the `libyaml` and `Text.Libyaml` code into its own package. [#145](https://github.com/snoyberg/yaml/issues/145)