diff -pruN 0.16.36/blah.pl 0.16.37/blah.pl
--- 0.16.36/blah.pl	1970-01-01 00:00:00.000000000 +0000
+++ 0.16.37/blah.pl	2025-09-27 01:38:41.000000000 +0000
@@ -0,0 +1,33 @@
+=item installable_config_shipper
+
+=cut
+
+sub installable_config_shipper {
+    my ($installable) = @_;
+
+    if ($installable =~ m{^ ( lib .* ) - ( [^-]+) $}x) {
+
+        my $prefix = $1;
+	my $type = $2;
+
+	return $installable
+	    if $type eq 'dev';
+
+        return "$prefix-dev";
+    }
+
+    return $EMPTY;
+}
+
+sub blah {
+    my ($installable) = @_;
+    if ($installable =~ m{^ libhugs- .* $}x) {
+	print("BLAH!\n");
+	return;
+    }
+    print("MEOW!\n");
+}
+
+blah("libhugs-libfrankie-dev");
+#print(installable_config_shipper("doc"));
+#print("\n");
diff -pruN 0.16.36/debian/changelog 0.16.37/debian/changelog
--- 0.16.36/debian/changelog	2025-09-19 18:07:26.000000000 +0000
+++ 0.16.37/debian/changelog	2025-10-10 18:21:01.000000000 +0000
@@ -1,3 +1,27 @@
+haskell-devscripts (0.16.37) unstable; urgency=medium
+
+  * Update dh_haskell_blurbs to not require dev parameter
+  * Update dh_haskell_depends_cabal to not require config-shipper parameter
+  * Update dh_haskell_depends_haddock to ignore non-doc packages
+  * Update dh_haskell_depends_hugs to ignore non-hugs packages
+  * Update dh_haskell_install_development_libs to ignore non-dev packages
+  * Update dh_haskell_install_ghc_registration to ignore non-dev packages
+  * Update dh_haskell_install_haddock to ignore non-doc packages
+  * Update dh_haskell_install_htmldocs to ignore non-doc packages
+  * Update dh_haskell_install_profiling_libs to ignore non-prof packages
+  * Update dh_haskell_provides_ghc to not require config-shipper parameter
+  * Update dh_haskell_recommends_documentation_references to ignore non-doc pkgs
+  * Update dh_haskell_shlibdeps to ignore non-dev packages
+  * Update dh_haskell_suggests to ignore non-doc packages
+  * Update dh_haskell_extra_depends_ghc to not require type param
+  * Add myself to Uploaders
+  * Move envvars needed by dh_haskell_ scripts to common library
+  * Change default source-dir for installation scripts to debian/tmp
+  * Update Standards-Version to 4.7.2 (no changes needed)
+  * Remove FSF mailing address from d/copyright
+
+ -- Scott Talbert <swt@techie.net>  Fri, 10 Oct 2025 14:21:01 -0400
+
 haskell-devscripts (0.16.36) unstable; urgency=medium
 
   * Introduce config_to_package_id method
diff -pruN 0.16.36/debian/control 0.16.37/debian/control
--- 0.16.36/debian/control	2025-09-19 18:06:45.000000000 +0000
+++ 0.16.37/debian/control	2025-10-10 18:21:01.000000000 +0000
@@ -4,9 +4,10 @@ Priority: optional
 Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
 Uploaders: Ilias Tsitsimpis <iliastsi@debian.org>
          , Felix Lechner <felix.lechner@lease-up.com>
+         , Scott Talbert <swt@techie.net>
 Build-Depends: debhelper-compat (= 13)
 Build-Depends-Indep: perl
-Standards-Version: 4.7.0
+Standards-Version: 4.7.2
 Rules-Requires-Root: no
 Vcs-Browser: https://salsa.debian.org/haskell-team/haskell-devscripts
 Vcs-Git: https://salsa.debian.org/haskell-team/haskell-devscripts.git/
diff -pruN 0.16.36/debian/copyright 0.16.37/debian/copyright
--- 0.16.36/debian/copyright	2022-08-02 19:32:02.000000000 +0000
+++ 0.16.37/debian/copyright	2025-10-10 18:21:01.000000000 +0000
@@ -31,8 +31,7 @@ License: GPL-2
  GNU General Public License for more details.
  .
  You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation, Inc.,
- 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+ along with this package; if not, see <https://www.gnu.org/licenses/>.
  .
  On Debian and systems the full text of the GNU General Public
  License version 2 can be found in the file
@@ -49,9 +48,8 @@ License: GPL-2+
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  .
- You should have received a copy of the GNU General Public License along
- with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ You should have received a copy of the GNU General Public License
+ along with this package; if not, see <https://www.gnu.org/licenses/>.
  .
  On Debian systems, the complete text of the GNU General Public License
  can be found in `/usr/share/common-licenses/GPL-2` and
diff -pruN 0.16.36/dh_haskell_blurbs 0.16.37/dh_haskell_blurbs
--- 0.16.36/dh_haskell_blurbs	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_blurbs	2025-10-10 18:21:01.000000000 +0000
@@ -25,6 +25,9 @@ use utf8;
 use Const::Fast;
 use Path::Tiny;
 
+use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
+  installable_type
+);
 use Debian::Debhelper::Dh_Lib;
 
 const my $EMPTY => q{};
@@ -37,49 +40,47 @@ init(
         'type=s' => \$dh{TYPE},
     });
 
-my $type = $dh{TYPE} // $EMPTY;
 
-my $short_blurb;
-my $long_blurb;
+for my $installable (@{ $dh{DOPACKAGES} }) {
+    my $type = $dh{TYPE} // installable_type($installable);
+
+    my $short_blurb;
+    my $long_blurb;
 
-if ($type eq 'dev') {
+    if ($type eq 'dev') {
 
-    $short_blurb = $EMPTY;
-    $long_blurb =<< 'QUOTE_END';
+        $short_blurb = $EMPTY;
+        $long_blurb =<< 'QUOTE_END';
 This package provides a library for the Haskell programming language.
 See http://www.haskell.org/ for more information on Haskell.
 QUOTE_END
-}
-
-if ($type eq 'prof') {
+    } elsif ($type eq 'prof') {
 
-    $short_blurb = '; profiling libraries';
-    $long_blurb = << 'QUOTE_END';
+        $short_blurb = '; profiling libraries';
+        $long_blurb = << 'QUOTE_END';
 This package provides a library for the Haskell programming language, compiled
 for profiling.  See http://www.haskell.org/ for more information on Haskell.
 QUOTE_END
-}
+    } elsif ($type eq 'doc') {
 
-if ($type eq 'doc') {
-
-    $short_blurb = '; documentation';
-    $long_blurb = << 'QUOTE_END';
+        $short_blurb = '; documentation';
+        $long_blurb = << 'QUOTE_END';
 This package provides the documentation for a library for the Haskell
 programming language.
 See http://www.haskell.org/ for more information on Haskell.
 QUOTE_END
-}
-
-$short_blurb //= $EMPTY;
-$long_blurb //= $EMPTY;
+    } else {
+        next;
+    }
 
-chomp $short_blurb;
-chomp $long_blurb;
+    $short_blurb //= $EMPTY;
+    $long_blurb //= $EMPTY;
 
-# replace newlines with magic marker
-$long_blurb =~ s{ \n }{$MAGIC_MARKER}gx;
+    chomp $short_blurb;
+    chomp $long_blurb;
 
-for my $installable (@{ $dh{DOPACKAGES} }) {
+    # replace newlines with magic marker
+    $long_blurb =~ s{ \n }{$MAGIC_MARKER}gx;
 
     my $substvars_path = "debian/$installable.substvars";
 
diff -pruN 0.16.36/dh_haskell_depends_cabal 0.16.37/dh_haskell_depends_cabal
--- 0.16.36/dh_haskell_depends_cabal	2025-09-19 18:07:26.000000000 +0000
+++ 0.16.37/dh_haskell_depends_cabal	2025-10-10 18:21:01.000000000 +0000
@@ -29,8 +29,10 @@ use Unicode::UTF8 qw(encode_utf8);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_type
   installable_hc
+  installable_config_shipper
   hc_pkgdir
   ghc_pkg_command
   load_ghc_database
@@ -50,6 +52,7 @@ init(
     options => {
         'config-shipper=s' => \$dh{CONFIG_SHIPPER},
     });
+init_hs_env();
 
 my $haskell_ghc_pkg = ghc_pkg_command();
 
@@ -62,7 +65,8 @@ for my $installable (@{ $dh{DOPACKAGES}
 
     my $pkgdir = hc_pkgdir($haskell_compiler);
 
-    my $config_shipper = $dh{CONFIG_SHIPPER} || $installable;
+    my $config_shipper
+        = $dh{CONFIG_SHIPPER} || installable_config_shipper($installable);
     my $confdir = "debian/$config_shipper/$pkgdir";
 
     my @ghc_configs;
diff -pruN 0.16.36/dh_haskell_depends_haddock 0.16.37/dh_haskell_depends_haddock
--- 0.16.36/dh_haskell_depends_haddock	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_depends_haddock	2025-10-10 18:21:01.000000000 +0000
@@ -29,6 +29,7 @@ use Path::Tiny;
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
   installable_hc
+  installable_type
   hc_haddock
 );
 use Debian::Debhelper::Dh_Lib;
@@ -42,6 +43,9 @@ init();
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'doc');
+
     my $compiler = installable_hc($installable);
     my $haddock_command = hc_haddock($compiler);
 
diff -pruN 0.16.36/dh_haskell_depends_hugs 0.16.37/dh_haskell_depends_hugs
--- 0.16.36/dh_haskell_depends_hugs	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_depends_hugs	2025-10-10 18:21:01.000000000 +0000
@@ -36,15 +36,17 @@ const my $NEWLINE => qq{\n};
 
 init();
 
-my $version = run(qw{dpkg-query --showformat=${Version} --show hugs});
-my $upstream_version = $version;
+for my $installable (@{ $dh{DOPACKAGES} }) {
 
-# strip Debian revision
-$upstream_version =~ s{ - [^-]* $}{}x;
+    next if ($installable !~ m{^ libhugs- .* $}x);
 
-my @depends = ("hugs (>= $upstream_version)");
+    my $version = run(qw{dpkg-query --showformat=${Version} --show hugs});
+    my $upstream_version = $version;
 
-for my $installable (@{ $dh{DOPACKAGES} }) {
+    # strip Debian revision
+    $upstream_version =~ s{ - [^-]* $}{}x;
+
+    my @depends = ("hugs (>= $upstream_version)");
 
     my $substvars_path = "debian/$installable.substvars";
 
diff -pruN 0.16.36/dh_haskell_extra_depends_ghc 0.16.37/dh_haskell_extra_depends_ghc
--- 0.16.36/dh_haskell_extra_depends_ghc	2022-09-25 12:19:31.000000000 +0000
+++ 0.16.37/dh_haskell_extra_depends_ghc	2025-10-10 18:21:01.000000000 +0000
@@ -29,7 +29,9 @@ use Unicode::UTF8 qw(encode_utf8);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_hc
+  installable_type
   ghc_pkg_command
   load_ghc_database
   own_cabal_prerequisites
@@ -46,11 +48,10 @@ init(
     options => {
         'type=s' => \$dh{TYPE},
     });
-
-my $type = $dh{TYPE} // $EMPTY;
+init_hs_env();
 
 # this installs the extra-packages file
-if ($type eq 'dev' && length $ENV{DEB_GHC_EXTRA_PACKAGES}) {
+if (length $ENV{DEB_GHC_EXTRA_PACKAGES}) {
 
     die encode_utf8('Need CABAL_PACKAGE for DEB_GHC_EXTRA_PACKAGES')
       unless length $ENV{CABAL_PACKAGE};
@@ -60,6 +61,9 @@ if ($type eq 'dev' && length $ENV{DEB_GH
 
     for my $installable (@{ $dh{DOPACKAGES} }) {
 
+        my $type = $dh{TYPE} // installable_type($installable);
+        next if ($type ne 'dev');
+
         my $EP_DIR
           = "debian/$installable/usr/lib/haskell-packages/extra-packages";
         run(qw{mkdir --parents}, $EP_DIR);
diff -pruN 0.16.36/dh_haskell_install_development_libs 0.16.37/dh_haskell_install_development_libs
--- 0.16.36/dh_haskell_install_development_libs	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_install_development_libs	2025-10-10 18:21:01.000000000 +0000
@@ -28,6 +28,7 @@ use Unicode::UTF8 qw(encode_utf8);
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
   installable_hc
+  installable_type
   hc_libdir
 );
 use Debian::Debhelper::Dh_Lib;
@@ -42,10 +43,13 @@ init(
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'dev');
+
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
     my $libdir = hc_libdir($compiler);
 
-    my $source = $dh{SOURCE_DIR} || $DOT;
+    my $source = $dh{SOURCE_DIR} || 'debian/tmp';
 
     next
       unless -e "$source/$libdir";
diff -pruN 0.16.36/dh_haskell_install_ghc_registration 0.16.37/dh_haskell_install_ghc_registration
--- 0.16.36/dh_haskell_install_ghc_registration	2022-08-02 19:32:02.000000000 +0000
+++ 0.16.37/dh_haskell_install_ghc_registration	2025-10-10 18:21:01.000000000 +0000
@@ -26,18 +26,24 @@ use Unicode::UTF8 qw(encode_utf8);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_hc
+  installable_type
   hc_pkgdir
 );
 use Debian::Debhelper::Dh_Lib;
 
 init();
+init_hs_env();
 
 die encode_utf8('No Setup.hs executable named.')
   unless length $ENV{DEB_SETUP_BIN_NAME};
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'dev');
+
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
     my $pkgdir = hc_pkgdir($compiler);
 
diff -pruN 0.16.36/dh_haskell_install_haddock 0.16.37/dh_haskell_install_haddock
--- 0.16.36/dh_haskell_install_haddock	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_install_haddock	2025-10-10 18:21:01.000000000 +0000
@@ -27,7 +27,9 @@ use Unicode::UTF8 qw(encode_utf8);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_hc
+  installable_type
   hc_docdir
 );
 use Debian::Debhelper::Dh_Lib;
@@ -38,6 +40,7 @@ init(
     options => {
         'source-dir=s' => \$dh{SOURCE_DIR},
     });
+init_hs_env();
 
 die encode_utf8('Need CABAL_PACKAGE to install HTML documentation.')
   unless length $ENV{CABAL_PACKAGE};
@@ -47,12 +50,15 @@ die encode_utf8('Need CABAL_VERSION to i
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'doc');
+
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
 
     my $docdir
       = hc_docdir($compiler, $ENV{CABAL_PACKAGE}, $ENV{CABAL_VERSION});
 
-    my $source = $dh{SOURCE_DIR} || $DOT;
+    my $source = $dh{SOURCE_DIR} || 'debian/tmp';
     my $tmp_docdir = "$source/$docdir";
 
     next
diff -pruN 0.16.36/dh_haskell_install_htmldocs 0.16.37/dh_haskell_install_htmldocs
--- 0.16.36/dh_haskell_install_htmldocs	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_install_htmldocs	2025-10-10 18:21:01.000000000 +0000
@@ -27,7 +27,9 @@ use Unicode::UTF8 qw(encode_utf8);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_hc
+  installable_type
   hc_htmldir
 );
 use Debian::Debhelper::Dh_Lib;
@@ -39,16 +41,20 @@ init(
     options => {
         'source-dir=s' => \$dh{SOURCE_DIR},
     });
+init_hs_env();
 
 die encode_utf8('Need CABAL_PACKAGE to install HTML documentation.')
   unless length $ENV{CABAL_PACKAGE};
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'doc');
+
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
     my $htmldir = hc_htmldir($compiler, $ENV{CABAL_PACKAGE});
 
-    my $source = $dh{SOURCE_DIR} || $DOT;
+    my $source = $dh{SOURCE_DIR} || 'debian/tmp';
 
     next
       unless -e "$source/$htmldir";
diff -pruN 0.16.36/dh_haskell_install_profiling_libs 0.16.37/dh_haskell_install_profiling_libs
--- 0.16.36/dh_haskell_install_profiling_libs	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_install_profiling_libs	2025-10-10 18:21:01.000000000 +0000
@@ -28,6 +28,7 @@ use Unicode::UTF8 qw(encode_utf8);
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
   installable_hc
+  installable_type
   hc_libdir
 );
 use Debian::Debhelper::Dh_Lib;
@@ -42,10 +43,13 @@ init(
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'prof');
+
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
     my $libdir = hc_libdir($compiler);
 
-    my $source = $dh{SOURCE_DIR} || $DOT;
+    my $source = $dh{SOURCE_DIR} || 'debian/tmp';
 
     next
       unless -e "$source/$libdir";
diff -pruN 0.16.36/dh_haskell_provides_ghc 0.16.37/dh_haskell_provides_ghc
--- 0.16.36/dh_haskell_provides_ghc	2025-09-19 18:07:26.000000000 +0000
+++ 0.16.37/dh_haskell_provides_ghc	2025-10-10 18:21:01.000000000 +0000
@@ -30,8 +30,10 @@ use Unicode::UTF8 qw(encode_utf8);
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_type
   installable_hc
+  installable_config_shipper
   hc_pkgdir
   ghc_pkg_command
   load_ghc_database
@@ -48,13 +50,15 @@ init(
     options => {
         'config-shipper=s' => \$dh{CONFIG_SHIPPER},
     });
+init_hs_env();
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
     my $pkgdir = hc_pkgdir($compiler);
 
-    my $config_shipper = $dh{CONFIG_SHIPPER} || $installable;
+    my $config_shipper
+        = $dh{CONFIG_SHIPPER} || installable_config_shipper($installable);
     my $confdir = "debian/$config_shipper/$pkgdir";
 
     my @configs;
diff -pruN 0.16.36/dh_haskell_recommends_documentation_references 0.16.37/dh_haskell_recommends_documentation_references
--- 0.16.36/dh_haskell_recommends_documentation_references	2023-09-23 06:51:44.000000000 +0000
+++ 0.16.37/dh_haskell_recommends_documentation_references	2025-10-10 18:21:01.000000000 +0000
@@ -29,7 +29,10 @@ use Path::Tiny;
 use Unicode::UTF8 qw(encode_utf8);
 use Cwd qw(abs_path);
 
-use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(run_quiet);
+use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
+  installable_type
+  run_quiet
+);
 use Debian::Debhelper::Dh_Lib;
 
 const my $EMPTY => q{};
@@ -48,6 +51,9 @@ die encode_utf8('grep-dctrl is missing')
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'doc');
+
     say encode_utf8(
         "Finding all links in the documentation in installable $installable.");
     my @links =split(
diff -pruN 0.16.36/dh_haskell_shlibdeps 0.16.37/dh_haskell_shlibdeps
--- 0.16.36/dh_haskell_shlibdeps	2025-09-19 18:07:26.000000000 +0000
+++ 0.16.37/dh_haskell_shlibdeps	2025-10-10 18:21:01.000000000 +0000
@@ -31,7 +31,9 @@ use Unicode::UTF8 qw(encode_utf8 decode_
 
 use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(
   run
+  init_hs_env
   installable_hc
+  installable_type
   hc_pkgdir
   ghc_pkg_command
   load_ghc_database
@@ -43,11 +45,15 @@ const my $SPACE => q{ };
 const my $NEWLINE => qq{\n};
 
 init();
+init_hs_env();
 
 my $ghc_pkg = ghc_pkg_command();
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'dev');
+
     my $compiler = installable_hc($installable) || $ENV{DEB_DEFAULT_COMPILER};
     my $pkgdir = hc_pkgdir($compiler);
 
diff -pruN 0.16.36/dh_haskell_suggests 0.16.37/dh_haskell_suggests
--- 0.16.36/dh_haskell_suggests	2022-07-20 09:15:28.000000000 +0000
+++ 0.16.37/dh_haskell_suggests	2025-10-10 18:21:01.000000000 +0000
@@ -26,6 +26,7 @@ use Const::Fast;
 use List::SomeUtils qw(uniq);
 use Path::Tiny;
 
+use Debian::Debhelper::Buildsystem::Haskell::Recipes qw(installable_type);
 use Debian::Debhelper::Dh_Lib;
 
 const my $SPACE => q{ };
@@ -37,6 +38,9 @@ init();
 
 for my $installable (@{ $dh{DOPACKAGES} }) {
 
+    my $type = installable_type($installable);
+    next if ($type ne 'doc');
+
     my @suggests;
 
     for my $suffix (qw{prof doc}) {
diff -pruN 0.16.36/lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm 0.16.37/lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm
--- 0.16.36/lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm	2025-09-19 18:07:26.000000000 +0000
+++ 0.16.37/lib/Debian/Debhelper/Buildsystem/Haskell/Recipes.pm	2025-10-10 18:21:01.000000000 +0000
@@ -32,6 +32,7 @@ BEGIN {
       run
       installable_hc
       installable_type
+      installable_config_shipper
       source_hc
       hc_libdir
       hc_pkgdir
@@ -44,6 +45,7 @@ BEGIN {
       own_cabal_prerequisites
       hashed_id_to_virtual_installable
       config_to_package_id
+      init_hs_env
       clean_recipe
       make_setup_recipe
       configure_recipe
@@ -185,6 +187,27 @@ sub installable_type {
     return $EMPTY;
 }
 
+=item installable_config_shipper
+
+=cut
+
+sub installable_config_shipper {
+    my ($installable) = @_;
+
+    if ($installable =~ m{^ ( lib .* ) - ( [^-]+) $}x) {
+
+        my $prefix = $1;
+        my $type = $2;
+
+        return $installable
+            if $type eq 'dev';
+
+        return "$prefix-dev";
+    }
+
+    return $EMPTY;
+}
+
 =item source_hc
 
 =cut
@@ -500,6 +523,48 @@ sub config_to_package_id {
     return $package_id;
 }
 
+=item init_hs_env
+
+=cut
+
+sub init_hs_env {
+    $ENV{DEB_DEFAULT_COMPILER} //= 'ghc';
+
+    $ENV{DEB_GHC_DATABASE} = 'debian/tmp-db';
+
+    my @cabal_candidates = glob('*.cabal');
+
+    error('No cabal file found')
+      unless @cabal_candidates;
+
+    error('More than one cabal file')
+      if @cabal_candidates > 1;
+
+    my $cabal_path = $cabal_candidates[0];
+    my $cabal_contents = path($cabal_path)->slurp_utf8;
+
+    error('Cannot get package name from cabal file')
+      unless $cabal_contents =~ /^ name \s* : \s* (\S*) \s* $/imx;
+
+    my $package_name = lc $1;
+
+    $ENV{CABAL_PACKAGE} //= $package_name;
+
+    error('Cannot get package version from cabal file')
+      unless $cabal_contents =~ /^ version \s* : \s* (\S*) \s* $/imx;
+
+    my $package_version = $1;
+
+    $ENV{CABAL_VERSION} = $package_version;
+
+    $ENV{DEB_ENABLE_TESTS} //= 'no';
+    $ENV{DEB_ENABLE_HOOGLE} //= 'yes';
+
+    $ENV{DEB_SETUP_BIN_NAME} //= 'debian/hlibrary.setup';
+
+    return;
+}
+
 =item clean_recipe
 
 =cut
