Skip to content

Commit

Permalink
Disable role annotation warning on GHC 9.8 (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-martin authored Mar 1, 2024
1 parent 51f0f7a commit 5e22f75
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.stack-work
/dist-newstyle
*.graphula
test.db
95 changes: 73 additions & 22 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions graphula.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.36.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: 77f36204ab2afc392bf0f4eb7413aaf8ff36c25b86f28dde5747f3ed9121f0d4

name: graphula
version: 2.1.0.0
Expand Down Expand Up @@ -63,6 +61,8 @@ library
, unliftio
, unliftio-core
default-language: Haskell2010
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures -Wno-operator-whitespace
if impl(ghc >= 8.10)
Expand Down Expand Up @@ -92,6 +92,8 @@ test-suite readme
, transformers
, unliftio-core
default-language: Haskell2010
if impl(ghc >= 9.8)
ghc-options: -Wno-missing-role-annotations
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures -Wno-operator-whitespace
if impl(ghc >= 8.10)
Expand Down
3 changes: 3 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ ghc-options:
- -Wno-unsafe

when:
- condition: impl(ghc >= 9.8)
ghc-options:
- -Wno-missing-role-annotations
- condition: impl(ghc >= 9.2)
ghc-options:
- -Wno-missing-kind-signatures
Expand Down

0 comments on commit 5e22f75

Please sign in to comment.