Skip to content

Commit

Permalink
Merge pull request #186 from bergey/master
Browse files Browse the repository at this point in the history
prefer String instance of ToYaml over [Char]
  • Loading branch information
snoyberg committed May 7, 2020
2 parents 17318fc + 6b7beb8 commit bacf680
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions yaml/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog for yaml

## 0.11.4.0

* add `ToYaml` instance for `String` [#186](https://github.com/snoyberg/yaml/pull/186)

## 0.11.3.0

* Don't wrap up async exceptions [#185](https://github.com/snoyberg/yaml/issues/185)
Expand Down
2 changes: 1 addition & 1 deletion yaml/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: yaml
version: 0.11.3.0
version: 0.11.4.0
synopsis: Support for parsing and rendering YAML documents.
description: README and API documentation are available at <https://www.stackage.org/package/yaml>
category: Data
Expand Down
2 changes: 1 addition & 1 deletion yaml/src/Data/Yaml/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ instance ToYaml a => ToYaml [a] where
toYaml = array . map toYaml
instance ToYaml Text where
toYaml = string
instance ToYaml String where
instance {-# OVERLAPPING #-} ToYaml String where
toYaml = string . T.pack
instance ToYaml Int where
toYaml i = YamlBuilder (EventScalar (S8.pack $ show i) NoTag PlainNoTag Nothing:)
Expand Down
4 changes: 2 additions & 2 deletions yaml/yaml.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 4160e171cfd5a87614a9fbf40f548f75306e24d499c44f71c279d15f8c4e2c39
-- hash: 1f75743c2fefefb33f6f3e8a51fce90cb3f286c975d205d7ded3789d5b15c488

name: yaml
version: 0.11.3.0
version: 0.11.4.0
synopsis: Support for parsing and rendering YAML documents.
description: README and API documentation are available at <https://www.stackage.org/package/yaml>
category: Data
Expand Down

0 comments on commit bacf680

Please sign in to comment.