diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,6 @@
+# 0.9.3
+- apply migration to GHC 9.4.* for Windows (see https://gitlab.haskell.org/ghc/ghc/-/issues/22738)
+
 # 0.9.2
 - fix a sample format conversion bug that caused pitch problems in `sampleFromMemoryPcm`
 
diff --git a/proteaaudio.cabal b/proteaaudio.cabal
--- a/proteaaudio.cabal
+++ b/proteaaudio.cabal
@@ -1,6 +1,6 @@
 Cabal-Version:       2.2
 Name:                proteaaudio
-Version:             0.9.2
+Version:             0.9.3
 Synopsis:            Simple audio library for Windows, Linux, OSX.
 Description:         Simple audio library for Windows, Linux, OSX. Supports PCM, Ogg and Wav playback and multichannel mixing.
 License:             BSD-3-Clause
@@ -55,7 +55,7 @@
 
 Library
   Build-Depends:        base >= 4 && < 5,
-                        bytestring == 0.10.*
+                        bytestring >=0.10 && <0.12,
 
   default-language:     Haskell2010
 
@@ -74,16 +74,26 @@
 
   CXX-Options:          "-DPROTEAAUDIO_RT"
 
+  if impl(ghc >= 9.4)
+    build-depends:      system-cxx-std-lib
+  else
+    if os(windows)
+      extra-libraries:  stdc++
+    if os(linux)
+      extra-libraries:  stdc++
+    if os(darwin)
+      extra-libraries:  stdc++
+
   if os(windows)
     CXX-Options:        "-D__WINDOWS_DS__"
-    Extra-Libraries:    stdc++ ole32 dsound winmm
+    Extra-Libraries:    ole32 dsound winmm
   if os(linux)
     CXX-Options:        "-D__LINUX_PULSE__"
-    Extra-Libraries:    stdc++ pthread pulse-simple pulse
+    Extra-Libraries:    pthread pulse-simple pulse
     pkgconfig-depends:  libpulse-simple, libpulse
   if os(darwin)
     CXX-Options:        "-D__MACOSX_CORE__"
-    Extra-Libraries:    stdc++ pthread
+    Extra-Libraries:    pthread
     Frameworks:         CoreFoundation CoreAudio
 
 executable proteaaudio-play
@@ -99,5 +109,5 @@
   build-depends:
     base >= 4 && < 5,
     filepath >=1.4 && <2,
-    bytestring == 0.10.*,
+    bytestring >=0.10 && <0.12,
     proteaaudio
diff --git a/stack.yaml b/stack.yaml
--- a/stack.yaml
+++ b/stack.yaml
@@ -1,4 +1,4 @@
-resolver: lts-15.6
+resolver: nightly-2023-01-06
 
 packages:
 - '.'
