diff --git a/CHANGELOG b/CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,7 @@
+1.8.0
+-----
+* Support ghc 9.10.3
+
 1.7.0
 -----
 * Respect the '--relative' option for Root_Dir field
diff --git a/cabal-cargs.cabal b/cabal-cargs.cabal
--- a/cabal-cargs.cabal
+++ b/cabal-cargs.cabal
@@ -1,6 +1,6 @@
 cabal-version:      >=1.10.0
 name:               cabal-cargs
-version:            1.7.0
+version:            1.8.0
 license:            BSD3
 license-file:       LICENSE
 maintainer:         daniel.trstenjak@gmail.com
@@ -8,7 +8,7 @@
 tested-with:
     ghc ==7.6.2 ghc ==7.6.3 ghc ==7.8.3 ghc ==7.10.1 ghc ==8.0.1
     ghc ==8.2.1 ghc ==8.4.2 ghc ==8.6.3 ghc ==8.10.1 ghc ==9.4.7
-    ghc ==9.8.2
+    ghc ==9.8.2 ghc ==9.10.3
 
 synopsis:
     A command line program for extracting compiler arguments from a cabal file.
@@ -64,7 +64,7 @@
         cmdargs >=0.10.5 && <0.11,
         lens >=4.0.1 && <6.0,
         directory >=1.0 && <1.4,
-        filepath >=1.0 && <1.5,
+        filepath >=1.0 && <1.6,
         transformers >=0.3.0.0 && <0.7,
         text >=1.1.0.1 && <2.2,
         system-filepath >=0.4.9 && <0.5,
@@ -93,5 +93,5 @@
         base >=3 && <5,
         tasty >=0.9.0.1 && <1.6,
         tasty-golden >=2.2.0.2 && <2.4,
-        filepath >=1.3.0.1 && <1.5,
+        filepath >=1.3.0.1 && <1.6,
         cabal-cargs -any
diff --git a/lib/CabalCargs/CompilerArgs.hs b/lib/CabalCargs/CompilerArgs.hs
--- a/lib/CabalCargs/CompilerArgs.hs
+++ b/lib/CabalCargs/CompilerArgs.hs
@@ -12,7 +12,7 @@
 import qualified CabalCargs.Fields as F
 import qualified CabalCargs.BuildInfo as B
 import qualified CabalLenses as CL
-import Data.List (nub, foldl')
+import Data.List (nub)
 import Data.Maybe (maybeToList, listToMaybe)
 import Control.Lens
 import System.FilePath (takeDirectory, pathSeparator)
diff --git a/lib/CabalCargs/Format.hs b/lib/CabalCargs/Format.hs
--- a/lib/CabalCargs/Format.hs
+++ b/lib/CabalCargs/Format.hs
@@ -7,7 +7,6 @@
 import CabalCargs.CompilerArgs (CompilerArgs(..))
 import CabalCargs.Formatting (Formatting(..))
 import Data.Maybe (maybeToList)
-import Data.List (foldl')
 
 
 format :: Formatting -> CompilerArgs -> [String]
