diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 836773523d839999cb568f38ff62e261c6a3692e..9268c6b77e3e66bf4bb5dfcd520b0dbc5c5ecc32 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -13,9 +13,9 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest]
-        cabal: ["3.4"]
+        cabal: ["3.6"]
         ghc:
-          - "9.2.0.20210821"
+          - "9.2.1"
 
     steps:
     - uses: actions/checkout@v2
diff --git a/cabal.project b/cabal.project
index bac38a529b9f54bba1066bcf100690344626f7ff..593a1eaff6f90f075a5a6320b370b3754178608b 100644
--- a/cabal.project
+++ b/cabal.project
@@ -44,7 +44,7 @@ constraints:
   alex ==3.2.6,
   ansi-pretty ==0.1.2.2,
   arith-encode ==1.0.2,
-  attoparsec ==0.13.2.5 || ==0.14.1,
+  attoparsec ==0.13.2.5 || ==0.14.2,
   barbies ==2.0.2.0,
   barbies-th ==0.1.8,
   base-compat ==0.11.2,
@@ -64,7 +64,7 @@ constraints:
   cassava ==0.5.2.0,
   cborg ==0.2.5.0,
   cereal ==0.5.8.1,
-  charset ==0.3.8,
+  charset ==0.3.9,
   chaselev-deque ==0.5.0.5,
   colour ==2.3.5,
   combinat ==0.2.10.0,
@@ -106,7 +106,7 @@ constraints:
   heterocephalus ==1.0.5.4,
   hgeometry ==0.11.0.0,
   hgeometry-ipe ==0.11.0.0,
-  hspec-discover ==2.8.2,
+  hspec-discover ==2.9.1,
   hspec-expectations ==0.8.2,
   hspec-meta ==2.7.8,
   hspec-wai ==0.11.1,
@@ -141,19 +141,19 @@ constraints:
   plots ==0.1.1.2,
   pointed ==5.0.2,
   posix-api ==0.3.4.0,
-  primitive ==0.7.1.0,
+  primitive ==0.7.3.0,
   primitive-extras ==0.10.1,
   primitive-sort ==0.1.0.0,
   primitive-unlifted ==0.1.3.0,
   proto3-wire ==1.2.2,
   quickcheck-instances ==0.3.25.2,
-  random ==1.2.0,
+  random ==1.2.1,
   row-types ==1.0.1.0,
   safe ==0.3.19,
   safecopy ==0.10.4.2,
   salak ==0.3.6,
-  semialign ==1.2,
-  semigroupoids ==5.3.5,
+  semialign ==1.2.0.1,
+  semigroupoids ==5.3.6,
   serialise ==0.2.3.0,
   servant ==0.18.2,
   shake ==0.19.4,
@@ -172,7 +172,7 @@ constraints:
   th-desugar ==1.11 || ==1.12,
   tls ==1.5.5,
   tpdb ==2.2.0,
-  tree-diff ==0.2,
+  tree-diff ==0.2.1,
   true-name ==0.1.0.3,
   uniplate ==1.6.13,
   vector-builder ==0.3.8.1,
diff --git a/haddock-api/haddock-api.cabal b/haddock-api/haddock-api.cabal
index 6258613eb964d5fdc965c389605c831cf98c47d8..011655826fbb9434360bb50e7d867de61262aa9a 100644
--- a/haddock-api/haddock-api.cabal
+++ b/haddock-api/haddock-api.cabal
@@ -184,7 +184,7 @@ test-suite spec
                , ghc-paths       ^>= 0.1.0.12
                , haddock-library ^>= 1.9.0
                , xhtml           ^>= 3000.2.2
-               , hspec           ^>= 2.8
+               , hspec           ^>= 2.9
                , parsec          ^>= 3.1.13.0
                , QuickCheck      >= 2.11  && ^>= 2.14
 
@@ -205,7 +205,7 @@ test-suite spec
                , transformers
 
   build-tool-depends:
-    hspec-discover:hspec-discover ^>= 2.8
+    hspec-discover:hspec-discover ^>= 2.9
 
 source-repository head
   type:     git
diff --git a/haddock-api/src/Haddock/Backends/Hyperlinker.hs b/haddock-api/src/Haddock/Backends/Hyperlinker.hs
index d16aa24e9f5ed4acd7947827df3b10baa2b2ece7..5bbea77bd640382b99e292e482315a2858582922 100644
--- a/haddock-api/src/Haddock/Backends/Hyperlinker.hs
+++ b/haddock-api/src/Haddock/Backends/Hyperlinker.hs
@@ -107,4 +107,3 @@ highlightScript = "highlight.js"
 -- | Path to default CSS file.
 defaultCssFile :: FilePath -> FilePath
 defaultCssFile libdir = libdir </> "html" </> "solarized.css"
-
diff --git a/haddock-library/haddock-library.cabal b/haddock-library/haddock-library.cabal
index 93e3fc825d786e215b468f88dcabd2039a8bb0a8..688a48c14722ee605031064bc9c79ce503980d9c 100644
--- a/haddock-library/haddock-library.cabal
+++ b/haddock-library/haddock-library.cabal
@@ -95,10 +95,10 @@ test-suite spec
   --     version of `hspec` & `hspec-discover` to ensure
   --     intercompatibility
   build-depends:
-    , hspec                          >= 2.4.4    && < 2.9
+    , hspec                          >= 2.4.4    && < 2.10
 
   build-tool-depends:
-    , hspec-discover:hspec-discover  >= 2.4.4    && < 2.9
+    , hspec-discover:hspec-discover  >= 2.4.4    && < 2.10
 
 test-suite fixtures
   type:             exitcode-stdio-1.0