on master help sign in
Proper handling of String +123 serialization (fixes #64)
commit438f0bc959e398bf88e420c4634136e325301b55 authorMichael Snoyman <michael@fpcomplete.com> dateMon 20 Jul 2015, 16:49 (11 years ago) parent963ba05
4 files changed+9−1
ChangeLog.md+4 Data/Yaml.hs+1 test/Data/YamlSpec.hs+3 yaml.cabal+1−1
ChangeLog.md+4
@@ -1,3 +1,7 @@
1+## 0.8.12
2+
3+* Proper handling of `String "+123"` [#64](https://github.com/snoyberg/yaml/issues/64)
4+
15## 0.8.11
26
37* Function to print prettier parse exceptions [#59](https://github.com/snoyberg/yaml/pull/59)
Data/Yaml.hs+1
@@ -158,6 +158,7 @@ isNumeric =
158158 || c == 'E'
159159 || c == '.'
160160 || c == '-'
161+ || c == '+'
161162
162163decode :: FromJSON a
163164 => ByteString
test/Data/YamlSpec.hs+3
@@ -140,6 +140,9 @@ spec = do
140140
141141 it "aliases in keys #49" caseIssue49
142142
143+ it "serialization of +123 #64" $ do
144+ D.decode (D.encode ("+123" :: String)) `shouldBe` Just ("+123" :: String)
145+
143146
144147specialStrings :: [T.Text]
145148specialStrings =
yaml.cabal+1−1
@@ -1,5 +1,5 @@
11name: yaml
2−version: 0.8.11
2+version: 0.8.12
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov