Skip to content

Commit

Permalink
Release 2.0.2.1, fixing compatibility with GHC 9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Apr 27, 2024
1 parent 9a5794b commit 44ec7c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for [`os-string` package](http://hackage.haskell.org/package/os-string)

## 2.0.2.1 *Apr 2024*

* Fix compabitiliby with GHC 9.10

## 2.0.2 *Dec 2023*

* Implement coercionToPlatformTypes, fixes #4
Expand Down
4 changes: 2 additions & 2 deletions os-string.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: os-string
version: 2.0.2
version: 2.0.2.1

-- NOTE: Don't forget to update ./changelog.md
license: BSD-3-Clause
Expand Down Expand Up @@ -63,7 +63,7 @@ library

default-language: Haskell2010
build-depends:
, base >=4.12.0.0 && <4.20
, base >=4.12.0.0 && <4.21
, bytestring >=0.11.3.0
, deepseq
, exceptions
Expand Down
8 changes: 6 additions & 2 deletions tests/encoding/EncodingSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ tests =
let str = [toEnum 55296, toEnum 55297]
encoded = encodeWithTE utf16le str
decoded = decodeWithTE utf16le =<< encoded
#if __GLASGOW_HASKELL__ >= 904
#if __GLASGOW_HASKELL__ >= 910
in decoded === Left (EncodingError ("recoverEncode: invalid argument (cannot encode character " <> show (head str) <> ")\n") Nothing))
#elif __GLASGOW_HASKELL__ >= 904
in decoded === Left (EncodingError ("recoverEncode: invalid argument (cannot encode character " <> show (head str) <> ")") Nothing))
#else
in decoded === Left (EncodingError "recoverEncode: invalid argument (invalid character)" Nothing))
Expand Down Expand Up @@ -69,7 +71,9 @@ tests =
let str = [toEnum 0xDFF0, toEnum 0xDFF2]
encoded = encodeWithTE (mkUTF8 RoundtripFailure) str
decoded = decodeWithTE (mkUTF8 RoundtripFailure) =<< encoded
#if __GLASGOW_HASKELL__ >= 904
#if __GLASGOW_HASKELL__ >= 910
in decoded === Left (EncodingError ("recoverEncode: invalid argument (cannot encode character " <> show (head str) <> ")\n") Nothing))
#elif __GLASGOW_HASKELL__ >= 904
in decoded === Left (EncodingError ("recoverEncode: invalid argument (cannot encode character " <> show (head str) <> ")") Nothing))
#else
in decoded === Left (EncodingError "recoverEncode: invalid argument (invalid character)" Nothing))
Expand Down

0 comments on commit 44ec7c9

Please sign in to comment.