A quick fix: in /usr/share/haskell-devscripts/Dh_Haskell.sh , remove the if statement (line 147)
if dpkg --compare-versions "${ghcversion}" '>=' 8
and only keep the else branch
dep=`strip-hash $2`
It seems that ghc-pkc 8.6.5 (used in focal) can handle unstripped package ids, but ghc-pkc 8.8.4 (used in jammy) cannot (and neither can ghc-pkc with version < 8).
A quick fix: in /usr/share/ haskell- devscripts/ Dh_Haskell. sh , remove the if statement (line 147)
if dpkg --compare-versions "${ghcversion}" '>=' 8
and only keep the else branch
dep=`strip-hash $2`
It seems that ghc-pkc 8.6.5 (used in focal) can handle unstripped package ids, but ghc-pkc 8.8.4 (used in jammy) cannot (and neither can ghc-pkc with version < 8).