diff --git a/ghc-tags-plugin.cabal b/ghc-tags-plugin.cabal
--- a/ghc-tags-plugin.cabal
+++ b/ghc-tags-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.4
 name:                ghc-tags-plugin
-version:             0.5.1.0
+version:             0.5.2.0
 synopsis:            A compiler plugin which generates tags file from GHC parsed syntax tree.
 description:
   A [GHC compiler plugin](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/extending_ghc.html?highlight=compiler%20plugin#compiler-plugins)
@@ -18,7 +18,7 @@
                      README.md
 homepage:            https://github.com/coot/ghc-tags-plugin#readme
 bug-reports:         https://github.com/coot/ghc-tags-plugin/issues
-tested-with:         GHC==8.8.4, GHC==8.10.7, GHC==9.0.2, GHC==9.2.4, GHC==9.4.2
+tested-with:         GHC==8.10.7, GHC==9.0.2, GHC==9.2.4, GHC==9.4.2
 
 -- Don't build gtp-check command by default; it's a development tool.
 flag gtp-check
@@ -54,7 +54,12 @@
                        pipes-safe       ^>=2.3,
                        text              >=1.2 && <2.1,
 
-                       ghc-tags-core
+  -- on macos `ghc-tags-core-0.4.2.0` does not build (preprocessor error)
+  if impl(ghc < 8.10) && os(darwin)
+    build-depends:     ghc-tags-core < 0.4.2.0
+  else
+    build-depends:     ghc-tags-core
+
 
   default-language:    Haskell2010
   ghc-options:         -Wall
