From 69a1cb7dd7277941ec9e4f8d68f64dafdd5ca682 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 13 Feb 2024 21:16:17 +0100 Subject: GHC 9.8 compatibility --- Parser.hs | 4 ++++ hs-visinter.cabal | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Parser.hs b/Parser.hs index c958069..971ed89 100644 --- a/Parser.hs +++ b/Parser.hs @@ -8,6 +8,9 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE TypeOperators #-} +-- I don't want a warning for 'head' and 'tail' in this file. But I also don't +-- want GHCs before 9.8 to complain that they don't know the x-partial warning. +{-# OPTIONS_GHC -Wno-unrecognised-warning-flags -Wno-x-partial #-} module Parser ( parse, printErrMsg, @@ -16,6 +19,7 @@ module Parser ( ) where import Control.Applicative +import Control.Monad import Control.Monad.Chronicle import Control.Monad.Reader import Control.Monad.State.Lazy diff --git a/hs-visinter.cabal b/hs-visinter.cabal index 1972b77..11d19eb 100644 --- a/hs-visinter.cabal +++ b/hs-visinter.cabal @@ -13,11 +13,11 @@ executable hs-visinter AST Parser build-depends: - base >= 4.16 && < 4.19, - containers >= 0.6.3.1 && < 0.7, + base >= 4.16 && < 4.20, + containers >= 0.6.3.1 && < 0.8, mtl, monad-chronicle ^>= 1.0.0.1, these hs-source-dirs: . default-language: Haskell2010 - ghc-options: -Wall -O2 -threaded + ghc-options: -Wall -threaded -- cgit v1.2.3-70-g09d2