Resolving dependencies... Configuring base16-bytestring-0.1.1.6... Configuring network-2.8.0.0... Building base16-bytestring-0.1.1.6... Installed base16-bytestring-0.1.1.6 Configuring network-uri-2.6.1.0... Building network-uri-2.6.1.0... Building network-2.8.0.0... Installed network-uri-2.6.1.0 Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Installed old-locale-1.0.0.7 Configuring random-1.1... Building random-1.1... Installed network-2.8.0.0 Configuring syb-0.7... Installed random-1.1 Configuring uu-tc-2015.1.1... Building syb-0.7... Building uu-tc-2015.1.1... Installed uu-tc-2015.1.1 Configuring bitcoin-script-0.11.1... Building bitcoin-script-0.11.1... Installed syb-0.7 Configuring HTTP-4000.3.12... Building HTTP-4000.3.12... Installed bitcoin-script-0.11.1 Configuring json-0.9.2... Building json-0.9.2... Installed json-0.9.2 Installed HTTP-4000.3.12 Configuring bitcoin-hs-0.0.1... Failed to install bitcoin-hs-0.0.1 Build log ( /home/builder/.cabal/logs/ghc-8.4.3/bitcoin-hs-0.0.1-2yVwwMmWlQwFGFaTYxVG2i.log ): cabal: Entering directory '/tmp/cabal-tmp-10671/bitcoin-hs-0.0.1' cabal: Leaving directory '/tmp/cabal-tmp-10671/bitcoin-hs-0.0.1' cabal: Error: some packages failed to install: SCRIPTWriter-1.0.1-4kpKm75XvqWOFMHnhiXTo depends on SCRIPTWriter-1.0.1 which failed to install. bitcoin-hs-0.0.1-2yVwwMmWlQwFGFaTYxVG2i failed during the configure step. The exception was: dieVerbatim: user error (cabal: '/usr/local/bin/ghc' exited with an error: /tmp/cabal-tmp-10671/bitcoin-hs-0.0.1/dist/setup/setup.hs:80:16: error: • Data constructor not in scope: FlagName :: [Char] -> a0 • Perhaps you meant one of these: variable ‘flagName’ (imported from Distribution.PackageDescription), variable ‘unFlagName’ (imported from Distribution.PackageDescription), variable ‘mkFlagName’ (imported from Distribution.PackageDescription) | 80 | case lookup (FlagName "x86asm") (theFlags lbi) of | ^^^^^^^^ /tmp/cabal-tmp-10671/bitcoin-hs-0.0.1/dist/setup/setup.hs:80:36: error: • Couldn't match expected type ‘[(a0, Bool)]’ with actual type ‘FlagAssignment’ • In the second argument of ‘lookup’, namely ‘(theFlags lbi)’ In the expression: lookup (FlagName "x86asm") (theFlags lbi) In the expression: case lookup (FlagName "x86asm") (theFlags lbi) of Nothing -> False Just b -> b | 80 | case lookup (FlagName "x86asm") (theFlags lbi) of | ^^^^^^^^^^^^ )