Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support GHC 9.12 #100

Merged
merged 3 commits into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/packcheck.yml
Original file line number Diff line number Diff line change
@@ -86,6 +86,7 @@ jobs:
fail-fast: false
matrix:
name:
- 9.12.1
- 9.10.1
- 9.8.1
- 9.6.3
@@ -100,6 +101,12 @@ jobs:
- 8.2.2
- 8.0.2
include:
- name: 9.12.1
ghc-version: 9.12.1
command: cabal-v2
runner: ubuntu-latest
cabal-version: 3.14.1.1

- name: 9.10.1
ghc-version: 9.10.1
command: cabal-v2
@@ -153,12 +160,16 @@ jobs:
command: cabal-v2
runner: ubuntu-latest
cabal-version: 3.2
pack_options: >-
DISABLE_BENCH=y

- name: 8.4.4
ghc-version: 8.4.4
command: cabal-v2
runner: ubuntu-latest
cabal-version: 3.2
pack_options: >-
DISABLE_BENCH=y

- name: 8.2.2
ghc-version: 8.2.2
8 changes: 7 additions & 1 deletion Data/Unicode/Types.hs
Original file line number Diff line number Diff line change
@@ -19,7 +19,9 @@ module Data.Unicode.Types
NormalizationMode(..)
) where

#if __GLASGOW_HASKELL__ < 912
import Data.Typeable (Typeable)
#endif

-- |
-- Normalization transforms Unicode text into an equivalent
@@ -95,4 +97,8 @@ data NormalizationMode
| NFKD -- ^ Compatibility decomposition.
| NFC -- ^ Canonical decomposition followed by canonical composition.
| NFKC -- ^ Compatibility decomposition followed by canonical composition.
deriving (Eq, Show, Enum, Typeable)
deriving (Eq, Show, Enum
#if __GLASGOW_HASKELL__ < 912
, Typeable
#endif
)
8 changes: 4 additions & 4 deletions unicode-transforms.cabal
Original file line number Diff line number Diff line change
@@ -87,10 +87,10 @@ library
hs-source-dirs: .
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
base >= 4.8 && < 4.21
base >= 4.8 && < 4.22
, unicode-data >= 0.2 && < 0.7
, bytestring >= 0.9 && < 0.13
, ghc-prim >= 0.2 && < 0.12
, ghc-prim >= 0.2 && < 0.14

-- We depend on a lot of internal modules in text. We keep the upper bound
-- inclusive of the latest stable version.
@@ -112,7 +112,7 @@ test-suite extras
test
ghc-options: -Wall -fwarn-identities -fwarn-incomplete-record-updates -fwarn-incomplete-uni-patterns -fwarn-tabs
build-depends:
QuickCheck >=2.1 && <2.15
QuickCheck >=2.1 && <2.16
, base
, deepseq >=1.1 && <1.6
, text
@@ -190,7 +190,7 @@ benchmark bench
if flag(use-gauge)
build-depends: gauge >=0.2.0 && <0.3
else
build-depends: tasty-bench>= 0.2.5 && <0.4
build-depends: tasty-bench>= 0.2.5 && <0.5
mixins: tasty-bench (Test.Tasty.Bench as Gauge.Main)
if flag(dev)
ghc-options: -O0