on master help sign in
Merge pull request #222 from andreasabel/fixes
8d69bbbMichael Snoyman
stack.yaml+1−1
@@ -1,4 +1,4 @@
1−resolver: lts-20.25
1+resolver: nightly-2023-07-10
2
2
3flags:
3flags:
4 yaml:
4 yaml:
yaml/package.yaml+2
@@ -109,3 +109,5 @@ tests:
109 - base-compat
109 - base-compat
110 - temporary
110 - temporary
111 - raw-strings-qq
111 - raw-strings-qq
112+ build-tools:
113+ - hspec-discover
yaml/test/Data/YamlSpec.hs+2−2
@@ -822,9 +822,9 @@ casePreservesScientificPrecision = do
822 -- However, it didn't work (and still doesn't work with aeson < 0.7)
822 -- However, it didn't work (and still doesn't work with aeson < 0.7)
823 -- for two reasons:
823 -- for two reasons:
824 --
824 --
825− -- * We use 'Data.Text.Read.double', which is not as accurate as it
825+ -- - We use 'Data.Text.Read.double', which is not as accurate as it
826 -- can be;
826 -- can be;
827− -- * Even if we used 'Data.Text.Read.rational' we would not get good
827+ -- - Even if we used 'Data.Text.Read.rational' we would not get good
828 -- results, because of <https://github.com/bos/text/issues/34>.
828 -- results, because of <https://github.com/bos/text/issues/34>.
829 "x: 9.78159610558926e-5" `shouldDecode` object
829 "x: 9.78159610558926e-5" `shouldDecode` object
830 [ "x" .= D.Number (read "9.78159610558926e-5") ]
830 [ "x" .= D.Number (read "9.78159610558926e-5") ]
yaml/yaml.cabal+2
@@ -198,6 +198,8 @@ test-suite spec
198 test
198 test
199 ghc-options: -Wall -Wcompat -with-rtsopts=-K1K
199 ghc-options: -Wall -Wcompat -with-rtsopts=-K1K
200 cpp-options: -DTEST
200 cpp-options: -DTEST
201+ build-tool-depends:
202+ hspec-discover:hspec-discover
201 build-depends:
203 build-depends:
202 HUnit
204 HUnit
203 , aeson >=0.11
205 , aeson >=0.11