File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog for [ ` os-string ` package] ( http://hackage.haskell.org/package/os-string )
2
2
3
+ ## 2.0.2.1 * Apr 2024*
4
+
5
+ * Fix compabitiliby with GHC 9.10
6
+
3
7
## 2.0.2 * Dec 2023*
4
8
5
9
* Implement coercionToPlatformTypes, fixes #4
Original file line number Diff line number Diff line change 1
1
cabal-version : 2.2
2
2
name : os-string
3
- version : 2.0.2
3
+ version : 2.0.2.1
4
4
5
5
-- NOTE: Don't forget to update ./changelog.md
6
6
license : BSD-3-Clause
@@ -63,7 +63,7 @@ library
63
63
64
64
default-language : Haskell2010
65
65
build-depends :
66
- , base >= 4.12.0.0 && < 4.20
66
+ , base >= 4.12.0.0 && < 4.21
67
67
, bytestring >= 0.11.3.0
68
68
, deepseq
69
69
, exceptions
Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ tests =
39
39
let str = [toEnum 55296 , toEnum 55297 ]
40
40
encoded = encodeWithTE utf16le str
41
41
decoded = decodeWithTE utf16le =<< encoded
42
- #if __GLASGOW_HASKELL__ >= 904
42
+ #if __GLASGOW_HASKELL__ >= 910
43
+ in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )\n " ) Nothing ))
44
+ #elif __GLASGOW_HASKELL__ >= 904
43
45
in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )" ) Nothing ))
44
46
#else
45
47
in decoded === Left (EncodingError " recoverEncode: invalid argument (invalid character)" Nothing ))
@@ -69,7 +71,9 @@ tests =
69
71
let str = [toEnum 0xDFF0 , toEnum 0xDFF2 ]
70
72
encoded = encodeWithTE (mkUTF8 RoundtripFailure ) str
71
73
decoded = decodeWithTE (mkUTF8 RoundtripFailure ) =<< encoded
72
- #if __GLASGOW_HASKELL__ >= 904
74
+ #if __GLASGOW_HASKELL__ >= 910
75
+ in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )\n " ) Nothing ))
76
+ #elif __GLASGOW_HASKELL__ >= 904
73
77
in decoded === Left (EncodingError (" recoverEncode: invalid argument (cannot encode character " <> show (head str) <> " )" ) Nothing ))
74
78
#else
75
79
in decoded === Left (EncodingError " recoverEncode: invalid argument (invalid character)" Nothing ))
You can’t perform that action at this time.
0 commit comments