diff -pruN 0.16.38/debian/changelog 0.16.39/debian/changelog
--- 0.16.38/debian/changelog	2025-10-13 23:28:09.000000000 +0000
+++ 0.16.39/debian/changelog	2025-10-16 03:59:41.000000000 +0000
@@ -1,3 +1,9 @@
+haskell-devscripts (0.16.39) unstable; urgency=medium
+
+  * Only provide $haskell:ghc-package substvar for -dev pkgs (Closes: #1118032)
+
+ -- Scott Talbert <swt@techie.net>  Wed, 15 Oct 2025 23:59:41 -0400
+
 haskell-devscripts (0.16.38) unstable; urgency=medium
 
   * Log installed files in dh_haskell_install_* helpers
diff -pruN 0.16.38/dh_haskell_provides_ghc 0.16.39/dh_haskell_provides_ghc
--- 0.16.38/dh_haskell_provides_ghc	2025-10-10 18:28:06.000000000 +0000
+++ 0.16.39/dh_haskell_provides_ghc	2025-10-16 03:53:28.000000000 +0000
@@ -82,10 +82,12 @@ for my $installable (@{ $dh{DOPACKAGES}
 
     my $substvars_path = "debian/$installable.substvars";
 
-    replace_line($substvars_path, "haskell:$compiler-package",
-        join($SPACE, @hashed_ids));
-
     my $type = installable_type($installable);
+    if ($type eq 'dev') {
+        replace_line($substvars_path, "haskell:$compiler-package",
+            join($SPACE, @hashed_ids));
+    }
+
     my @provides = map {
         hashed_id_to_virtual_installable($compiler, $_, $type,
             $ghc_pkg, '--package-db', $ENV{DEB_GHC_DATABASE})
