diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # Changelog for dear-imgui
 
+## [2.4.1]
+
+- Fixed builds on GHC-9.10+.
+
 ## [2.4.0]
 
 - `imgui` updated to [1.91.9b].
@@ -156,6 +160,7 @@
 [2.3.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v2.3.0
 [2.3.1]: https://github.com/haskell-game/dear-imgui.hs/tree/v2.3.1
 [2.4.0]: https://github.com/haskell-game/dear-imgui.hs/tree/v2.4.0
+[2.4.1]: https://github.com/haskell-game/dear-imgui.hs/tree/v2.4.1
 
 [1.91.9b]: https://github.com/ocornut/imgui/releases/tag/v1.91.9b
 [1.90.9]: https://github.com/ocornut/imgui/releases/tag/v1.90.9
diff --git a/dear-imgui.cabal b/dear-imgui.cabal
--- a/dear-imgui.cabal
+++ b/dear-imgui.cabal
@@ -1,7 +1,7 @@
 cabal-version: 3.0
 
 name: dear-imgui
-version: 2.4.0
+version: 2.4.1
 author: Oliver Charles
 maintainer: ollie@ocharles.org.uk, aenor.realm@gmail.com
 license: BSD-3-Clause
@@ -202,9 +202,14 @@
       -optcxx-std=c++11
 
   if flag(disable-obsolete)
+    if impl(ghc >= 9.10)
+      ghc-options: -optcxx-DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
     cxx-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
+    cpp-options: -DIMGUI_DISABLE_OBSOLETE_FUNCTIONS
 
   if flag(use-wchar32)
+    if impl(ghc >= 9.10)
+      ghc-options: -optcxx-DIMGUI_USE_WCHAR32
     cxx-options: -DIMGUI_USE_WCHAR32
     cpp-options: -DIMGUI_USE_WCHAR32
 
