Add support for GHC 9.6.1 (#85)

This commit is contained in:
Taylor Fausak 2023-03-18 13:27:42 -05:00 committed by GitHub
parent 4c05811317
commit e80b0e3ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 17 deletions

View File

@ -87,12 +87,7 @@
"version": "12" "version": "12"
}, },
{ {
"ghc": "9.0.2", "ghc": "9.2.7",
"platform": "ubuntu",
"version": "22.04"
},
{
"ghc": "9.2.5",
"platform": "ubuntu", "platform": "ubuntu",
"version": "22.04" "version": "22.04"
}, },
@ -101,6 +96,11 @@
"platform": "ubuntu", "platform": "ubuntu",
"version": "22.04" "version": "22.04"
}, },
{
"ghc": "9.6.1",
"platform": "ubuntu",
"version": "22.04"
},
{ {
"extension": ".exe", "extension": ".exe",
"ghc": "9.4.4", "ghc": "9.4.4",

View File

@ -81,7 +81,7 @@ module Witch
-- ** Type applications -- ** Type applications
-- | Although you can use this library without the [@TypeApplications@](https://downloads.haskell.org/~ghc/9.0.1/docs/html/users_guide/exts/type_applications.html) -- | Although you can use this library without the [@TypeApplications@](https://downloads.haskell.org/ghc/9.6.1/docs/users_guide/exts/type_applications.html)
-- language extension, the extension is strongly recommended. Since most -- language extension, the extension is strongly recommended. Since most
-- functions provided by this library are polymorphic in at least one type -- functions provided by this library are polymorphic in at least one type
-- variable, it's easy to use them in a situation that would be ambiguous. -- variable, it's easy to use them in a situation that would be ambiguous.

View File

@ -19,7 +19,7 @@ class From source target where
-- > -- Avoid this: -- > -- Avoid this:
-- > from (x :: s) -- > from (x :: s)
-- > -- >
-- > -- Prefer this (using [@TypeApplications@](https://downloads.haskell.org/~ghc/9.0.1/docs/html/users_guide/exts/type_applications.html) language extension): -- > -- Prefer this (using [@TypeApplications@](https://downloads.haskell.org/ghc/9.6.1/docs/users_guide/exts/type_applications.html) language extension):
-- > from @s x -- > from @s x
-- --
-- The default implementation of this method simply calls 'Coerce.coerce', -- The default implementation of this method simply calls 'Coerce.coerce',

View File

@ -23,12 +23,12 @@ flag pedantic
common library common library
build-depends: build-depends:
, base >= 4.15 && < 4.18 , base >= 4.16.0 && < 4.19
, bytestring >= 0.10.12 && < 0.12 , bytestring >= 0.11.4 && < 0.12
, containers >= 0.6.4 && < 0.7 , containers >= 0.6.5 && < 0.7
, tagged >= 0.8.6 && < 0.9 , tagged >= 0.8.6 && < 0.9
, text >= 1.2.5 && < 1.3 || >= 2.0 && < 2.1 , text >= 1.2.5 && < 1.3 || >= 2.0 && < 2.1
, time >= 1.9.3 && < 1.13 , time >= 1.11.1 && < 1.13
default-language: Haskell2010 default-language: Haskell2010
ghc-options: ghc-options:
-Weverything -Weverything
@ -38,16 +38,13 @@ common library
-Wno-missing-deriving-strategies -Wno-missing-deriving-strategies
-Wno-missing-export-lists -Wno-missing-export-lists
-Wno-missing-exported-signatures -Wno-missing-exported-signatures
-Wno-missing-kind-signatures
-Wno-missing-safe-haskell-mode -Wno-missing-safe-haskell-mode
-Wno-prepositive-qualified-module -Wno-prepositive-qualified-module
-Wno-redundant-constraints -Wno-redundant-constraints
-Wno-safe -Wno-safe
-Wno-unsafe -Wno-unsafe
if impl(ghc >= 9.2)
ghc-options:
-Wno-missing-kind-signatures
if flag(pedantic) if flag(pedantic)
ghc-options: ghc-options:
-Werror -Werror
@ -64,7 +61,7 @@ library
import: library import: library
build-depends: build-depends:
, template-haskell >= 2.17 && < 2.20 , template-haskell >= 2.18 && < 2.21
exposed-modules: exposed-modules:
Witch Witch
Witch.Encoding Witch.Encoding