Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting ghc-lib-parser-0.20200401 Building ghc-lib-parser-0.20200401 Failed to install ghc-lib-parser-0.20200401 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/ghc-lib-parser-0.20200401-L8PJyeaUYrYB6mpJyYxwie.log ): cabal: Entering directory '/tmp/cabal-tmp-12661/ghc-lib-parser-0.20200401' Configuring ghc-lib-parser-0.20200401... Preprocessing library for ghc-lib-parser-0.20200401.. Building library for ghc-lib-parser-0.20200401.. [ 1 of 257] Compiling GHC.BaseDir ( libraries/ghc-boot/GHC/BaseDir.hs, dist/build/GHC/BaseDir.o ) [ 2 of 257] Compiling GHC.Exts.Heap.ClosureTypes ( libraries/ghc-heap/GHC/Exts/Heap/ClosureTypes.hs, dist/build/GHC/Exts/Heap/ClosureTypes.o ) [ 3 of 257] Compiling GHC.Exts.Heap.Constants ( dist/build/GHC/Exts/Heap/Constants.hs, dist/build/GHC/Exts/Heap/Constants.o ) [ 4 of 257] Compiling GHC.Exts.Heap.InfoTable.Types ( dist/build/GHC/Exts/Heap/InfoTable/Types.hs, dist/build/GHC/Exts/Heap/InfoTable/Types.o ) [ 5 of 257] Compiling GHC.Exts.Heap.InfoTable ( dist/build/GHC/Exts/Heap/InfoTable.hs, dist/build/GHC/Exts/Heap/InfoTable.o ) [ 6 of 257] Compiling GHC.Exts.Heap.InfoTableProf ( dist/build/GHC/Exts/Heap/InfoTableProf.hs, dist/build/GHC/Exts/Heap/InfoTableProf.o ) [ 7 of 257] Compiling GHC.Exts.Heap.Closures ( libraries/ghc-heap/GHC/Exts/Heap/Closures.hs, dist/build/GHC/Exts/Heap/Closures.o ) [ 8 of 257] Compiling GHC.Exts.Heap.Utils ( dist/build/GHC/Exts/Heap/Utils.hs, dist/build/GHC/Exts/Heap/Utils.o ) [ 9 of 257] Compiling GHC.Exts.Heap ( libraries/ghc-heap/GHC/Exts/Heap.hs, dist/build/GHC/Exts/Heap.o ) [ 10 of 257] Compiling GHC.ForeignSrcLang.Type ( libraries/ghc-boot-th/GHC/ForeignSrcLang/Type.hs, dist/build/GHC/ForeignSrcLang/Type.o ) [ 11 of 257] Compiling GHC.ForeignSrcLang ( libraries/ghc-boot/GHC/ForeignSrcLang.hs, dist/build/GHC/ForeignSrcLang.o ) [ 12 of 257] Compiling GHC.LanguageExtensions.Type ( libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs, dist/build/GHC/LanguageExtensions/Type.o ) [ 13 of 257] Compiling GHC.LanguageExtensions ( libraries/ghc-boot/GHC/LanguageExtensions.hs, dist/build/GHC/LanguageExtensions.o ) [ 14 of 257] Compiling GHC.Lexeme ( libraries/ghc-boot-th/GHC/Lexeme.hs, dist/build/GHC/Lexeme.o ) [ 15 of 257] Compiling GHC.PackageDb ( libraries/ghc-boot/GHC/PackageDb.hs, dist/build/GHC/PackageDb.o ) [ 16 of 257] Compiling GHC.Platform ( libraries/ghc-boot/GHC/Platform.hs, dist/build/GHC/Platform.o ) [ 17 of 257] Compiling GHC.Serialized ( libraries/ghc-boot/GHC/Serialized.hs, dist/build/GHC/Serialized.o ) [ 18 of 257] Compiling GHC.Version ( ghc-lib/stage0/libraries/ghc-boot/build/GHC/Version.hs, dist/build/GHC/Version.o ) [ 19 of 257] Compiling GHC.UniqueSubdir ( libraries/ghc-boot/GHC/UniqueSubdir.hs, dist/build/GHC/UniqueSubdir.o ) [ 20 of 257] Compiling GHCi.BreakArray ( libraries/ghci/GHCi/BreakArray.hs, dist/build/GHCi/BreakArray.o ) [ 21 of 257] Compiling GHCi.FFI ( dist/build/GHCi/FFI.hs, dist/build/GHCi/FFI.o ) [ 22 of 257] Compiling GHCi.RemoteTypes ( libraries/ghci/GHCi/RemoteTypes.hs, dist/build/GHCi/RemoteTypes.o ) [ 23 of 257] Compiling GhcPrelude ( compiler/utils/GhcPrelude.hs, dist/build/GhcPrelude.o ) [ 24 of 257] Compiling GhcNameVersion ( compiler/main/GhcNameVersion.hs, dist/build/GhcNameVersion.o ) [ 25 of 257] Compiling GHC.Types.Var[boot] ( compiler/GHC/Types/Var.hs-boot, dist/build/GHC/Types/Var.o-boot ) [ 26 of 257] Compiling GHC.Core.TyCo.Rep[boot] ( compiler/GHC/Core/TyCo/Rep.hs-boot, dist/build/GHC/Core/TyCo/Rep.o-boot ) [ 27 of 257] Compiling GHC.Types.Name.Occurrence[boot] ( compiler/GHC/Types/Name/Occurrence.hs-boot, dist/build/GHC/Types/Name/Occurrence.o-boot ) [ 28 of 257] Compiling GHC.Types.Name[boot] ( compiler/GHC/Types/Name.hs-boot, dist/build/GHC/Types/Name.o-boot ) [ 29 of 257] Compiling GHC.Types.Module[boot] ( compiler/GHC/Types/Module.hs-boot, dist/build/GHC/Types/Module.o-boot ) [ 30 of 257] Compiling GHC.Driver.Plugins[boot] ( compiler/GHC/Driver/Plugins.hs-boot, dist/build/GHC/Driver/Plugins.o-boot ) [ 31 of 257] Compiling GHC.Driver.Hooks[boot] ( compiler/GHC/Driver/Hooks.hs-boot, dist/build/GHC/Driver/Hooks.o-boot ) [ 32 of 257] Compiling GHC.Core.TyCon[boot] ( compiler/GHC/Core/TyCon.hs-boot, dist/build/GHC/Core/TyCon.o-boot ) [ 33 of 257] Compiling GHC.Cmm.Dataflow.Collections ( compiler/GHC/Cmm/Dataflow/Collections.hs, dist/build/GHC/Cmm/Dataflow/Collections.o ) [ 34 of 257] Compiling GHC.Cmm.Dataflow.Block ( compiler/GHC/Cmm/Dataflow/Block.hs, dist/build/GHC/Cmm/Dataflow/Block.o ) [ 35 of 257] Compiling FiniteMap ( compiler/utils/FiniteMap.hs, dist/build/FiniteMap.o ) [ 36 of 257] Compiling Fingerprint ( compiler/utils/Fingerprint.hs, dist/build/Fingerprint.o ) [ 37 of 257] Compiling FileSettings ( compiler/main/FileSettings.hs, dist/build/FileSettings.o ) [ 38 of 257] Compiling FastMutInt ( compiler/utils/FastMutInt.hs, dist/build/FastMutInt.o ) [ 39 of 257] Compiling FastFunctions ( compiler/utils/FastFunctions.hs, dist/build/FastFunctions.o ) [ 40 of 257] Compiling Exception ( compiler/utils/Exception.hs, dist/build/Exception.o ) [ 41 of 257] Compiling EnumSet ( compiler/utils/EnumSet.hs, dist/build/EnumSet.o ) [ 42 of 257] Compiling Encoding ( compiler/utils/Encoding.hs, dist/build/Encoding.o ) [ 43 of 257] Compiling Config ( ghc-lib/stage0/compiler/build/Config.hs, dist/build/Config.o ) [ 44 of 257] Compiling Constants ( compiler/main/Constants.hs, dist/build/Constants.o ) [ 45 of 257] Compiling CliOption ( compiler/main/CliOption.hs, dist/build/CliOption.o ) [ 46 of 257] Compiling Language.Haskell.TH.LanguageExtensions ( libraries/template-haskell/Language/Haskell/TH/LanguageExtensions.hs, dist/build/Language/Haskell/TH/LanguageExtensions.o ) [ 47 of 257] Compiling Language.Haskell.TH.Lib.Map ( libraries/template-haskell/Language/Haskell/TH/Lib/Map.hs, dist/build/Language/Haskell/TH/Lib/Map.o ) [ 48 of 257] Compiling Language.Haskell.TH.Syntax ( libraries/template-haskell/Language/Haskell/TH/Syntax.hs, dist/build/Language/Haskell/TH/Syntax.o ) libraries/template-haskell/Language/Haskell/TH/Syntax.hs:189:10: error: Not in scope: type constructor or class ‘MonadFail’ | 189 | instance MonadFail Q where | ^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-12661/ghc-lib-parser-0.20200401' cabal: Error: some packages failed to install: ghc-lib-0.20200401-9KAy8bKFErb4Fg9OUU0TyO depends on ghc-lib-0.20200401 which failed to install. ghc-lib-parser-0.20200401-L8PJyeaUYrYB6mpJyYxwie failed during the building phase. The exception was: ExitFailure 1