GHC 8.4.1-alpha3 regression: Build error when `build-type: Custom` and `license: OtherLicense` are in the .cabal file
I got an error installing Agda upstream. I could reduce the error when build-type: Custom
and license: OtherLicense
are in the .cabal file:
Foo.cabal
:
name: Foo
version: 0.1.0.0
license: OtherLicense
build-type: Custom
cabal-version: >=1.10
library
exposed-modules: Foo
build-depends: base
default-language: Haskell2010
Foo.hs
:
module Foo where
foo :: Int -> Int
foo n = n
Setup.hs
:
import Distribution.Simple
main = defaultMain
The error:
$ cabal install
Failed to install Foo-0.1.0.0
cabal: Error: some packages failed to install:
Foo-0.1.0.0-33ReQaKfqaD7MoDL7J5kFM failed during the final install step. The
exception was:
dieVerbatim: user error (cabal: Couldn't parse the output of 'setup register
--gen-pkg-config':NoParse
"license" 5
)
cabal-install
version:
$ cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.0 of the Cabal library
If I change the license
field or the build
field, the error disappeared. I didn't get the above error using GHC 8.4.1-alpha2.