diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9936bd4..6f43961 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,6 +36,7 @@ jobs: - "9.6.6" - "9.8.2" - "9.10.1" + - "9.12.1" exclude: - os: macOS-latest diff --git a/src/Stan/Ghc/Compat.hs b/src/Stan/Ghc/Compat.hs index d3e24ba..fbdff02 100644 --- a/src/Stan/Ghc/Compat.hs +++ b/src/Stan/Ghc/Compat.hs @@ -16,4 +16,6 @@ import Stan.Ghc.Compat906 as Compat import Stan.Ghc.Compat906 as Compat #elif __GLASGOW_HASKELL__ == 910 import Stan.Ghc.Compat906 as Compat +#elif __GLASGOW_HASKELL__ == 912 +import Stan.Ghc.Compat906 as Compat #endif diff --git a/src/Stan/Ghc/Compat906.hs b/src/Stan/Ghc/Compat906.hs index 28b185c..548fa6b 100644 --- a/src/Stan/Ghc/Compat906.hs +++ b/src/Stan/Ghc/Compat906.hs @@ -4,7 +4,7 @@ {-# OPTIONS_GHC -Wno-orphans #-} module Stan.Ghc.Compat906 -#if __GLASGOW_HASKELL__ == 906 || __GLASGOW_HASKELL__ == 908 || __GLASGOW_HASKELL__ == 910 +#if __GLASGOW_HASKELL__ == 906 || __GLASGOW_HASKELL__ == 908 || __GLASGOW_HASKELL__ == 910 || __GLASGOW_HASKELL__ == 912 ( -- * Modules Module , ModuleName diff --git a/src/Stan/Hie/Compat.hs b/src/Stan/Hie/Compat.hs index d3bf0a8..f8c1325 100644 --- a/src/Stan/Hie/Compat.hs +++ b/src/Stan/Hie/Compat.hs @@ -16,4 +16,6 @@ import Stan.Hie.Compat904 as Compat import Stan.Hie.Compat904 as Compat #elif __GLASGOW_HASKELL__ == 910 import Stan.Hie.Compat904 as Compat +#elif __GLASGOW_HASKELL__ == 912 +import Stan.Hie.Compat904 as Compat #endif diff --git a/src/Stan/Hie/Compat904.hs b/src/Stan/Hie/Compat904.hs index 625e182..08e1d1e 100644 --- a/src/Stan/Hie/Compat904.hs +++ b/src/Stan/Hie/Compat904.hs @@ -1,7 +1,7 @@ {-# LANGUAGE CPP #-} module Stan.Hie.Compat904 -#if __GLASGOW_HASKELL__ == 904 || __GLASGOW_HASKELL__ == 906 || __GLASGOW_HASKELL__ == 908 || __GLASGOW_HASKELL__== 910 +#if __GLASGOW_HASKELL__ == 904 || __GLASGOW_HASKELL__ == 906 || __GLASGOW_HASKELL__ == 908 || __GLASGOW_HASKELL__== 910 || __GLASGOW_HASKELL__== 912 ( -- * Main HIE types ContextInfo (..) , HieArgs (..) @@ -108,4 +108,3 @@ eqDeclType (DeclType d1) d2 = d1 == d2 #else () where #endif - diff --git a/src/Stan/Hie/Debug.hs b/src/Stan/Hie/Debug.hs index dce1b9c..3981068 100644 --- a/src/Stan/Hie/Debug.hs +++ b/src/Stan/Hie/Debug.hs @@ -16,4 +16,6 @@ import Stan.Hie.Debug902 as Compat import Stan.Hie.Debug908 as Compat #elif __GLASGOW_HASKELL__ == 910 import Stan.Hie.Debug908 as Compat +#elif __GLASGOW_HASKELL__ == 912 +import Stan.Hie.Debug908 as Compat #endif diff --git a/src/Stan/Hie/Debug908.hs b/src/Stan/Hie/Debug908.hs index b8f97b6..25350b0 100644 --- a/src/Stan/Hie/Debug908.hs +++ b/src/Stan/Hie/Debug908.hs @@ -21,7 +21,7 @@ package to dependencies and use the @pPrint@ function from the -} module Stan.Hie.Debug908 -#if __GLASGOW_HASKELL__ == 908 || __GLASGOW_HASKELL__ == 910 +#if __GLASGOW_HASKELL__ == 908 || __GLASGOW_HASKELL__ == 910 || __GLASGOW_HASKELL__ == 912 ( debugHieFile ) where diff --git a/stan.cabal b/stan.cabal index b4c77a9..fe920f0 100644 --- a/stan.cabal +++ b/stan.cabal @@ -32,7 +32,7 @@ source-repository head location: https://github.com/kowainik/stan.git common common-options - build-depends: base >= 4.13 && < 4.21 && (< 4.16.3.0 || >= 4.17) + build-depends: base >= 4.13 && < 4.22 && (< 4.16.3.0 || >= 4.17) -- ^^ .hie files don't contain enough type -- information on ghc-9.2.[4-8] (base >= -- 4.16.3.0 && < 4.17) @@ -151,8 +151,8 @@ library , directory ^>= 1.3 , extensions ^>= 0.0.0.1 || ^>= 0.1.0.0 , filepath >= 1.4 && < 1.6 - , ghc >= 8.8 && < 9.11 - , ghc-boot-th >= 8.8 && < 9.11 + , ghc >= 8.8 && < 9.13 + , ghc-boot-th >= 8.8 && < 9.13 , gitrev ^>= 1.3.1 , microaeson ^>= 0.1.0.0 , optparse-applicative >= 0.15 && < 0.19