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 base64-bytestring-1.0.0.3 Starting clock-0.8 Starting call-stack-0.2.0 Starting hashable-1.3.0.0 Building call-stack-0.2.0 Building base64-bytestring-1.0.0.3 Building clock-0.8 Building hashable-1.3.0.0 Completed call-stack-0.2.0 Starting integer-logarithms-1.0.3 Building integer-logarithms-1.0.3 Completed clock-0.8 Starting microlens-0.4.11.2 Completed base64-bytestring-1.0.0.3 Starting old-locale-1.0.0.7 Building microlens-0.4.11.2 Building old-locale-1.0.0.7 Completed hashable-1.3.0.0 Starting possibly-1.0.0.0 Completed integer-logarithms-1.0.3 Starting primitive-0.7.0.1 Building possibly-1.0.0.0 Completed old-locale-1.0.0.7 Starting semigroups-0.19.1 Building primitive-0.7.0.1 Building semigroups-0.19.1 Completed possibly-1.0.0.0 Starting time-locale-compat-0.1.1.5 Completed microlens-0.4.11.2 Starting unordered-containers-0.2.10.0 Building time-locale-compat-0.1.1.5 Completed semigroups-0.19.1 Building unordered-containers-0.2.10.0 Completed time-locale-compat-0.1.1.5 Completed unordered-containers-0.2.10.0 Completed primitive-0.7.0.1 Starting scientific-0.3.6.2 Building scientific-0.3.6.2 Completed scientific-0.3.6.2 Starting formatting-6.3.7 Building formatting-6.3.7 Completed formatting-6.3.7 Starting fmt-0.6.1.2 Building fmt-0.6.1.2 Completed fmt-0.6.1.2 Starting enum-text-0.5.2.0 Building enum-text-0.5.2.0 Failed to install enum-text-0.5.2.0 Build log ( /home/builder/.cabal/logs/ghc-8.6.3/enum-text-0.5.2.0-Ee332ENAlZ42x8VM2x8rta.log ): cabal: Entering directory '/tmp/cabal-tmp-14429/enum-text-0.5.2.0' Configuring enum-text-0.5.2.0... Preprocessing library for enum-text-0.5.2.0.. Building library for enum-text-0.5.2.0.. [1 of 2] Compiling Paths_enum_text ( dist/build/autogen/Paths_enum_text.hs, dist/build/Paths_enum_text.o ) [2 of 2] Compiling Text.Enum.Text ( src/Text/Enum/Text.hs, dist/build/Text/Enum/Text.o ) src/Text/Enum/Text.hs:97:34: error: Ambiguous occurrence ‘fail’ It could refer to either ‘Prelude.fail’, imported from ‘Prelude’ at src/Text/Enum/Text.hs:8:8-21 (and originally defined in ‘GHC.Base’) or ‘Control.Monad.Fail.fail’, imported from ‘Control.Monad.Fail’ at src/Text/Enum/Text.hs:16:1-35 | 97 | fromFieldEnumText_ bs = maybe (fail msg) return $ HM.lookup bs hashmap_b | ^^^^ cabal: Leaving directory '/tmp/cabal-tmp-14429/enum-text-0.5.2.0' cabal: Error: some packages failed to install: enum-text-0.5.2.0-Ee332ENAlZ42x8VM2x8rta failed during the building phase. The exception was: ExitFailure 1