The Setup.hs file seems to assume that a configure file is present in the package.
It uses main = defaultMainWithHooks autoconfUserHooks which is not consistent with the build-type: Simple option of the Win32.cabal file (according to cabal's documentation).
Looking at the appveyor.yml file, it seems that this configure file is present in some contexts, but I do not know which ones.
And because the cabal build-type is Simple, I wonder if this file may be optional, in which case the Setup.hs file should maybe use main = defaultMain by default.
This would make it possible to run runghc Setup.hs configure (which is what we usually do in the rules_haskell ruleset for Bazel).
Current Behavior
Trying to configure the package with runghc Setup.hs configure fails with the following error.
The
Setup.hs
file seems to assume that aconfigure
file is present in the package. It usesmain = defaultMainWithHooks autoconfUserHooks
which is not consistent with thebuild-type: Simple
option of theWin32.cabal
file (according to cabal's documentation).Looking at the appveyor.yml file, it seems that this
configure
file is present in some contexts, but I do not know which ones. And because the cabalbuild-type
isSimple
, I wonder if this file may be optional, in which case theSetup.hs
file should maybe usemain = defaultMain
by default.This would make it possible to run
runghc Setup.hs configure
(which is what we usually do in therules_haskell
ruleset for Bazel).Current Behavior
Trying to configure the package with
runghc Setup.hs configure
fails with the following error.Steps to Reproduce (for bugs)
Your Environment
Github action failure
Here is also an example of this failure in a github action with the following environment: