diff --git a/README.md b/README.md
--- a/README.md
+++ b/README.md
@@ -1,12 +1,11 @@
 Ghc Tags Compiler Plugin
 ========================
-![Haskell Programming Language](https://img.shields.io/badge/language-Haskell-8D82AC.svg)
-![MPL-2.0 License](http://img.shields.io/badge/license-MPL20-brightgreen.svg)
-
-[![Haskell CI](https://github.com/coot/ghc-tags-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/coot/ghc-tags-plugin/actions/workflows/ci.yml)
-[![](https://matrix.hackage.haskell.org/api/v2/packages/ghc-tags-plugin/badge)](https://matrix.hackage.haskell.org/#/package/ghc-tags-plugin)
+[![Haskell](https://img.shields.io/badge/language-Haskell-8D82AC.svg?style=for-the-badge)](https://haskell.org)
+[![MPL-2.0 License](http://img.shields.io/badge/license-MPL20-brightgreen.svg?style=for-the-badge)](https://github.com/coot/ghc-tags-plugin/blob/master/ghc-tags-core/LICENSE)
+[![Haskell CI](https://img.shields.io/github/workflow/status/coot/ghc-tags-plugin/Haskell%20CI?label=Build&style=for-the-badge)](https://github.com/coot/ghc-tags-plugin/actions/workflows/ci.yml)
 
-A [Ghc Compiler Plugin](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/extending_ghc.html#compiler-plugins)
+A library and a [GHC compiler
+plugin](https://downloads.haskell.org/~ghc/latest/docs/html/users_guide/extending_ghc.html#compiler-plugins)
 which generates tags for each compiled module or component.
 
 
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
+cabal-version:       3.0
 name:                ghc-tags-plugin
-version:             0.5.2.0
+version:             0.5.3.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.10.7, GHC==9.0.2, GHC==9.2.4, GHC==9.4.2
+tested-with:         GHC == { 8.10.7, 9.0.2, 9.2.4, 9.4.2 }
 
 -- Don't build gtp-check command by default; it's a development tool.
 flag gtp-check
@@ -29,7 +29,22 @@
   type:     git
   location: https://github.com/coot/ghc-tags-plugin
 
+common warnings
+  ghc-options:         -Wall
+                       -Wno-unticked-promoted-constructors
+                       -Wcompat
+                       -- the following three warnings are enabled by -Wall in
+                       -- ghc-9.2
+                       -Wno-incomplete-uni-patterns
+                       -Wno-incomplete-record-updates
+                       -Wpartial-fields
+                       -Widentities
+                       -Wredundant-constraints
+  if impl(ghc >= 9)
+    ghc-options:       -Wunused-packages
+
 library
+  import:              warnings
   hs-source-dirs:      lib
   exposed-modules:     Plugin.GhcTags
                        Plugin.GhcTags.Options
@@ -49,29 +64,19 @@
                        optparse-applicative
                                          >=0.15.1 && < 0.17,
                        pipes            ^>=4.3,
-                       pipes-attoparsec ^>=0.5,
                        pipes-bytestring ^>=2.1,
                        pipes-safe       ^>=2.3,
                        text              >=1.2 && <2.1,
 
   -- 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
+    build-depends:     ghc-tags-core < 0.4.2.0,
+                       ghc-tags-pipes
   else
-    build-depends:     ghc-tags-core
-
+    build-depends:     ghc-tags-core,
+                       ghc-tags-pipes
 
   default-language:    Haskell2010
-  ghc-options:         -Wall
-                       -Wno-unticked-promoted-constructors
-                       -Wcompat
-                       -- the following three warnings are enabled by -Wall in
-                       -- ghc-9.2
-                       -Wincomplete-uni-patterns
-                       -Wincomplete-record-updates
-                       -Wpartial-fields
-                       -Widentities
-                       -Wredundant-constraints
 
 
 executable gtp-check
