Right now, trying to build cuda with GHC 8.8.3 or 8.10.1 fails with:
accelerate-kullback-liebler-0.1.2.0). The failure occurred during the
configure step. The exception was:
dieVerbatim: user error (cabal: '/opt/ghc/bin/ghc-8.8.3' exited with an error:
/home/vanessa/programming/haskell/done/accelerate-kullback-liebler/dist-newstyle/tmp/src-1724/cuda-0.10.1.0/dist/setup/setup.hs:199:29:
error:
• Couldn't match expected type ‘PerCompilerFlavor [String]’
with actual type ‘[(CompilerFlavor, [[Char]])]’
• In the ‘options’ field of a record
In the second argument of ‘($)’, namely
‘emptyBuildInfo
{ccOptions = ccOptions', ldOptions = ldOptions',
extraLibs = extraLibs', extraGHCiLibs = extraGHCiLibs',
extraLibDirs = extraLibDirs', frameworks = frameworks',
extraFrameworkDirs = frameworkDirs',
options = [(GHC, ghcOptions) | os /= Windows],
customFieldsBI = [c2hsExtraOptions]}’
In a stmt of a 'do' block:
buildInfo' <- addSystemSpecificOptions
$ emptyBuildInfo
{ccOptions = ccOptions', ldOptions = ldOptions',
extraLibs = extraLibs', extraGHCiLibs = extraGHCiLibs',
extraLibDirs = extraLibDirs', frameworks = frameworks',
extraFrameworkDirs = frameworkDirs',
options = [(GHC, ghcOptions) | os /= Windows],
customFieldsBI = [c2hsExtraOptions]}
|
199 | , options = [(GHC, ghcOptions) | os /= Windows]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
This can be fixed by revising such that Cabal <3.0.
Right now, trying to build
cuda
with GHC 8.8.3 or 8.10.1 fails with:This can be fixed by revising such that
Cabal <3.0
.Cheers!