diff --git a/System/Win32/File/Internal.hsc b/System/Win32/File/Internal.hsc
--- a/System/Win32/File/Internal.hsc
+++ b/System/Win32/File/Internal.hsc
@@ -26,6 +26,9 @@
 
 ##include "windows_cconv.h"
 
+-- For REPLACEFILE_IGNORE_ACL_ERRORS
+#define  _WIN32_WINNT 0x0600
+
 #include <windows.h>
 #include "alignment.h"
 
diff --git a/System/Win32/NamedPipes.hsc b/System/Win32/NamedPipes.hsc
--- a/System/Win32/NamedPipes.hsc
+++ b/System/Win32/NamedPipes.hsc
@@ -148,7 +148,7 @@
 -- >                        NothinROR
 --
 --
-createNamedPipe :: String   -- ^ A unique pipe name of the form @\\.\pipe\{pipename}@
+createNamedPipe :: String   -- ^ A unique pipe name of the form @\\\\.\\pipe\\{pipename}@
                             -- The `pipename` part of the name can include any
                             -- character other than a backslash, including
                             -- numbers and special characters. The entire pipe
diff --git a/Win32.cabal b/Win32.cabal
--- a/Win32.cabal
+++ b/Win32.cabal
@@ -1,6 +1,6 @@
 cabal-version:  2.0
 name:           Win32
-version:        2.14.2.0
+version:        2.14.2.1
 license:        BSD3
 license-file:   LICENSE
 author:         Alastair Reid, shelarcy, Tamar Christina
@@ -17,6 +17,13 @@
     include/Win32Aux.h include/win32debug.h include/alignment.h
 extra-doc-files:
     changelog.md
+tested-with:
+    GHC == 9.2.7,
+    GHC == 9.4.5,
+    GHC == 9.6.7,
+    GHC == 9.8.4,
+    GHC == 9.10.1,
+    GHC == 9.12.1
 
 flag os-string
   description: Use the new os-string package
diff --git a/changelog.md b/changelog.md
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,10 @@
 # Changelog for [`Win32` package](http://hackage.haskell.org/package/Win32)
 
-## 2.14.2.0 November 2024
+## 2.14.2.1 June 2025
+
+* Fix compilation of `ReplaceFileW` on some GHC versions [#245](https://github.com/haskell/win32/issues/245)
+
+## 2.14.2.0 May 2025
 
 * Add ReplaceFileW
 * Add support for Windows on Arm
