From b1aa6e9fb32aef876305171459d819d966876a1a Mon Sep 17 00:00:00 2001 From: Michael Snoyman Date: Tue, 12 Feb 2019 10:58:27 +0200 Subject: [PATCH] Fix the version bump --- libyaml/ChangeLog.md | 4 ++++ libyaml/package.yaml | 2 +- libyaml/src/Text/Libyaml.hs | 12 ++++++------ yaml/ChangeLog.md | 4 ---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libyaml/ChangeLog.md b/libyaml/ChangeLog.md index a76b676..80ae22a 100644 --- a/libyaml/ChangeLog.md +++ b/libyaml/ChangeLog.md @@ -1,5 +1,9 @@ # Changelog for libyaml +## 0.1.1.0 + +* Add options to `FormatOptions` to govern when tags rendered explicitly and when they are left implicit. [#165](https://github.com/snoyberg/yaml/issues/165) + ## 0.1.0.0 * Split `libyaml` into a separate package from `yaml`. This split occurred at diff --git a/libyaml/package.yaml b/libyaml/package.yaml index ffa668d..a713875 100644 --- a/libyaml/package.yaml +++ b/libyaml/package.yaml @@ -1,5 +1,5 @@ name: libyaml -version: 0.1.0.0 +version: 0.1.1.0 synopsis: Low-level, streaming YAML interface. description: README and API documentation are available at category: Text diff --git a/libyaml/src/Text/Libyaml.hs b/libyaml/src/Text/Libyaml.hs index 4e19bcb..fad7b40 100644 --- a/libyaml/src/Text/Libyaml.hs +++ b/libyaml/src/Text/Libyaml.hs @@ -681,7 +681,7 @@ parserParseOne' parser = allocaBytes eventSize $ \er -> do -- | Whether a tag should be rendered explicitly in the output or left -- implicit. -- --- @since 0.11.1.0 +-- @since 0.1.1.0 data TagRender = Explicit | Implicit deriving (Enum) @@ -693,7 +693,7 @@ toImplicitParam Implicit = 1 -- collection tags but all scalar tags (unless suppressed with styles -- 'NoTag or 'PlainNoTag'). -- --- @since 0.11.1.0 +-- @since 0.1.1.0 renderScalarTags :: Event -> TagRender renderScalarTags (EventScalar _ _ _ _) = Explicit renderScalarTags (EventSequenceStart _ _ _) = Implicit @@ -703,21 +703,21 @@ renderScalarTags _ = Implicit -- | A value for 'formatOptionsRenderTags' that renders all -- tags (except 'NoTag' tag and 'PlainNoTag' style). -- --- @since 0.11.1.0 +-- @since 0.1.1.0 renderAllTags :: Event -> TagRender renderAllTags _ = Explicit -- | A value for 'formatOptionsRenderTags' that renders no -- tags. -- --- @since 0.11.1.0 +-- @since 0.1.1.0 renderNoTags :: Event -> TagRender renderNoTags _ = Implicit -- | A value for 'formatOptionsRenderCollectionTags' that renders tags -- which are instances of 'UriTag' -- --- @since 0.11.1.0 +-- @since 0.1.1.0 renderUriTags :: Event -> TagRender renderUriTags (EventScalar _ UriTag{} _ _) = Explicit renderUriTags (EventSequenceStart UriTag{} _ _) = Explicit @@ -748,7 +748,7 @@ setWidth w opts = opts { formatOptionsWidth = w } -- | Control when and whether tags are rendered to output. -- --- @since 0.11.1.0 +-- @since 0.1.1.0 setTagRendering :: (Event -> TagRender) -> FormatOptions -> FormatOptions setTagRendering f opts = opts { formatOptionsRenderTags = f } diff --git a/yaml/ChangeLog.md b/yaml/ChangeLog.md index 8507037..0843476 100644 --- a/yaml/ChangeLog.md +++ b/yaml/ChangeLog.md @@ -1,9 +1,5 @@ # ChangeLog for yaml -## 0.11.1.0 - -* Add options to `FormatOptions` to govern when tags rendered explicitly and when they are left implicit. [#165](https://github.com/snoyberg/yaml/issues/165) - ## 0.11.0.0 * Split out the `libyaml` and `Text.Libyaml` code into its own package. [#145](https://github.com/snoyberg/yaml/issues/145)