Skip to content

Commit 9b7803e

Browse files
committed
Release 1.4.300.2, fixing compatibility with GHC 9.10
Wrt #230
1 parent c8be0a5 commit 9b7803e

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

changelog.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
_Note: below all `FilePath` values are unquoted, so `\\` really means two backslashes._
44

5-
## 1.4.300.1. *Jan 2024*
5+
## 1.4.300.2 *Apr 2024*
6+
7+
* Fix compabitiliby with GHC 9.10
8+
9+
## 1.4.300.1 *Jan 2024*
610

711
* Backport bugfix for [`splitFileName`](https://github.com/haskell/filepath/issues/219) on windows
812

9-
## 1.4.200.1. *Dec 2023*
13+
## 1.4.200.1 *Dec 2023*
1014

1115
* Improve deprecation warnings wrt [#209](https://github.com/haskell/filepath/issues/209)
1216

filepath.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.2
22
name: filepath
3-
version: 1.4.300.1
3+
version: 1.4.300.2
44

55
-- NOTE: Don't forget to update ./changelog.md
66
license: BSD-3-Clause
@@ -113,7 +113,7 @@ library
113113

114114
default-language: Haskell2010
115115
build-depends:
116-
, base >=4.9 && <4.20
116+
, base >=4.9 && <4.21
117117
, bytestring >=0.11.3.0
118118
, deepseq
119119
, exceptions

tests/abstract-filepath/EncodingSpec.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ tests =
3939
let str = [toEnum 55296, toEnum 55297]
4040
encoded = encodeWithTE utf16le str
4141
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
4345
in decoded === Left (EncodingError ("recoverEncode: invalid argument (cannot encode character " <> show (head str) <> ")") Nothing))
4446
#else
4547
in decoded === Left (EncodingError "recoverEncode: invalid argument (invalid character)" Nothing))
@@ -69,7 +71,9 @@ tests =
6971
let str = [toEnum 0xDFF0, toEnum 0xDFF2]
7072
encoded = encodeWithTE (mkUTF8 RoundtripFailure) str
7173
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
7377
in decoded === Left (EncodingError ("recoverEncode: invalid argument (cannot encode character " <> show (head str) <> ")") Nothing))
7478
#else
7579
in decoded === Left (EncodingError "recoverEncode: invalid argument (invalid character)" Nothing))

tests/bytestring-tests/Properties/Common.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import Data.Word
3333

3434
import Control.Arrow
3535
import Data.Foldable
36-
import Data.List as L
36+
import Data.List as L hiding (unsnoc)
3737
import Data.Semigroup
3838
import Data.Tuple
3939
import Test.QuickCheck

0 commit comments

Comments
 (0)