From 1bdbfbdf3d5ef8f972b97e00d190850470d02844 Mon Sep 17 00:00:00 2001 From: Taylor Fausak Date: Wed, 26 May 2021 20:03:34 -0400 Subject: [PATCH] Allow GHC 8.2 --- .github/workflows/ci.yaml | 1 + .gitignore | 2 ++ witch.cabal | 12 ++++++++---- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 72c551e..0e1057b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,7 @@ jobs: - { os: ubuntu-20.04, ghc: 8.8.4, cabal: 3.4.0.0 } - { os: ubuntu-20.04, ghc: 8.6.5, cabal: 3.4.0.0 } - { os: ubuntu-20.04, ghc: 8.4.4, cabal: 3.4.0.0 } + - { os: ubuntu-20.04, ghc: 8.2.2, cabal: 3.4.0.0 } runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/.gitignore b/.gitignore index 82bf4a7..f9aca15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ +/.cabal-sandbox/ /.ghc.environment* /.stack-work/ /cabal.project.freeze +/cabal.sandbox.config /dist-newstyle/ /dist/ /stack.yaml.lock diff --git a/witch.cabal b/witch.cabal index de9c0f6..eef982c 100644 --- a/witch.cabal +++ b/witch.cabal @@ -18,9 +18,9 @@ source-repository head common basics build-depends: - , base >= 4.11.0 && < 4.16 + , base >= 4.10.0 && < 4.16 , bytestring >= 0.10.8 && < 0.12 - , containers >= 0.5.11 && < 0.7 + , containers >= 0.5.10 && < 0.7 , text >= 1.2.3 && < 1.3 , time >= 1.9.1 && < 1.12 default-language: Haskell2010 @@ -28,12 +28,16 @@ common basics -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude - -Wno-missing-export-lists + -Wno-missed-specialisations -Wno-missing-exported-signatures -Wno-redundant-constraints -Wno-safe -Wno-unsafe + if impl(ghc >= 8.4) + ghc-options: + -Wno-missing-export-lists + if impl(ghc >= 8.8) ghc-options: -Wno-missing-deriving-strategies @@ -47,7 +51,7 @@ library import: basics build-depends: - , template-haskell >= 2.13.0 && < 2.18 + , template-haskell >= 2.12.0 && < 2.18 exposed-modules: Witch Witch.From