Skip to content

Commit

Permalink
Fix the version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Feb 12, 2019
1 parent ac1c995 commit b1aa6e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 4 additions & 0 deletions libyaml/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion libyaml/package.yaml
Original file line number Diff line number Diff line change
@@ -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 <https://www.stackage.org/package/libyaml>
category: Text
Expand Down
12 changes: 6 additions & 6 deletions libyaml/src/Text/Libyaml.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }

Expand Down
4 changes: 0 additions & 4 deletions yaml/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit b1aa6e9

Please sign in to comment.