Instead of using Cabal to build the project in the buildpack perhaps consider using Keter.
If viable for Heroku deployment/buildpack needs, then build binary that works on Heroku.