At the promising discussion, @hasufell offered up the following - but I think that is dependent on the existence of a working ‘Alpine Linux’ version of GHC. Cabal’s --enable-executable-static
flag is documented here:
EDIT: On ubuntu (via WSL 2) applying in Stack’s configuration:
configure-options: # Configure Cabal's configuration options
$locals:
- --enable-executable-static
saw stack build
end badly in the same way as my post above.