on master help sign in
Remove problematic non-ASCII character (fixes #92)
8749ee6Michael Snoyman
ChangeLog.md+5
@@ -1,3 +1,8 @@
1+## 0.8.18.4
2+
3+* Remove file with non-ASCII name due to Stack/cabal-install/Hackage
4+ restrictions (see [#92](https://github.com/snoyberg/yaml/issues/92))
5+
1## 0.8.18.2
6## 0.8.18.2
2
7
3* Handle non-ASCII filenames correctly on Windows [#91](https://github.com/snoyberg/yaml/pull/91)
8* Handle non-ASCII filenames correctly on Windows [#91](https://github.com/snoyberg/yaml/pull/91)
test/Data/YamlSpec.hs+6−1
@@ -19,7 +19,7 @@ import Control.Monad
19import Control.Exception (try, SomeException)
19import Control.Exception (try, SomeException)
20import Test.Hspec
20import Test.Hspec
21import Data.Either.Compat
21import Data.Either.Compat
22−import System.Directory (createDirectory)
22+import System.Directory (createDirectory, createDirectoryIfMissing)
23import Test.Mockery.Directory
23import Test.Mockery.Directory
24
24
25import qualified Data.Yaml as D
25import qualified Data.Yaml as D
@@ -327,6 +327,11 @@ caseEncodeDecodeNonAsciiFileData = do
327 D.encodeFile "accenté/bar.yaml" mySample
327 D.encodeFile "accenté/bar.yaml" mySample
328 out1 <- D.decodeFile "accenté/bar.yaml"
328 out1 <- D.decodeFile "accenté/bar.yaml"
329 out1 @?= Just mySample
329 out1 @?= Just mySample
330+
331+ createDirectoryIfMissing True "test/resources/accenté/"
332+
333+ readFile "test/resources/accent/foo.yaml" >>=
334+ writeFile "test/resources/accenté/foo.yaml"
330 out2 <- D.decodeFile "test/resources/accenté/foo.yaml"
335 out2 <- D.decodeFile "test/resources/accenté/foo.yaml"
331 out2 @?= Just mySample
336 out2 @?= Just mySample
332
337
test/resources/accenté/foo.yaml → test/resources/accent/foo.yamlrenamed

The content is the same.

yaml.cabal+2−2
@@ -1,8 +1,8 @@
1name: yaml
1name: yaml
2−version: 0.8.18.2
2+version: 0.8.18.4
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5−author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
5+author: Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov
6maintainer: Michael Snoyman <michael@snoyman.com>
6maintainer: Michael Snoyman <michael@snoyman.com>
7synopsis: Support for parsing and rendering YAML documents.
7synopsis: Support for parsing and rendering YAML documents.
8description: Please see the README.md file.
8description: Please see the README.md file.