Resolving dependencies... Starting call-stack-0.4.0 Starting clock-0.8.2 Starting base64-bytestring-1.2.0.1 Starting double-conversion-2.0.2.0 Building call-stack-0.4.0 Building clock-0.8.2 Building base64-bytestring-1.2.0.1 Building double-conversion-2.0.2.0 Completed call-stack-0.4.0 Starting hashable-1.3.2.0 Building hashable-1.3.2.0 Completed clock-0.8.2 Starting integer-logarithms-1.0.3.1 Building integer-logarithms-1.0.3.1 Completed base64-bytestring-1.2.0.1 Starting microlens-0.4.12.0 Building microlens-0.4.12.0 Completed integer-logarithms-1.0.3.1 Starting n2o-0.11.0 Building n2o-0.11.0 Completed double-conversion-2.0.2.0 Starting network-3.1.2.1 Completed hashable-1.3.2.0 Starting old-locale-1.0.0.7 Building old-locale-1.0.0.7 Completed microlens-0.4.12.0 Starting primitive-0.7.1.0 Completed n2o-0.11.0 Starting split-0.2.3.4 Building primitive-0.7.1.0 Building split-0.2.3.4 Completed old-locale-1.0.0.7 Starting splitmix-0.1.0.3 Building splitmix-0.1.0.3 Building network-3.1.2.1 Completed split-0.2.3.4 Starting time-locale-compat-0.1.1.5 Building time-locale-compat-0.1.1.5 Completed splitmix-0.1.0.3 Starting unliftio-core-0.2.0.1 Completed time-locale-compat-0.1.1.5 Starting void-0.7.3 Building unliftio-core-0.2.0.1 Building void-0.7.3 Completed unliftio-core-0.2.0.1 Starting zlib-0.6.2.3 Completed void-0.7.3 Starting unordered-containers-0.2.14.0 Building zlib-0.6.2.3 Building unordered-containers-0.2.14.0 Completed zlib-0.6.2.3 Starting async-2.2.3 Building async-2.2.3 Completed network-3.1.2.1 Starting random-1.2.0 Building random-1.2.0 Completed primitive-0.7.1.0 Starting vector-0.12.3.0 Building vector-0.12.3.0 Completed async-2.2.3 Starting scientific-0.3.7.0 Building scientific-0.3.7.0 Completed unordered-containers-0.2.14.0 Starting resourcet-1.2.4.2 Building resourcet-1.2.4.2 Completed random-1.2.0 Starting typed-process-0.2.6.0 Completed scientific-0.3.7.0 Starting streaming-commons-0.2.2.1 Building typed-process-0.2.6.0 Building streaming-commons-0.2.2.1 Completed resourcet-1.2.4.2 Starting formatting-7.1.2 Building formatting-7.1.2 Completed typed-process-0.2.6.0 Starting attoparsec-0.14.1 Building attoparsec-0.14.1 Completed streaming-commons-0.2.2.1 Completed formatting-7.1.2 Starting fmt-0.6.1.2 Building fmt-0.6.1.2 Completed fmt-0.6.1.2 Completed attoparsec-0.14.1 Completed vector-0.12.3.0 Starting vector-algorithms-0.8.0.4 Building vector-algorithms-0.8.0.4 Completed vector-algorithms-0.8.0.4 Starting mono-traversable-1.0.15.1 Building mono-traversable-1.0.15.1 Completed mono-traversable-1.0.15.1 Starting conduit-1.3.4.1 Building conduit-1.3.4.1 Completed conduit-1.3.4.1 Starting binary-conduit-1.3.1 Starting conduit-extra-1.3.5 Building binary-conduit-1.3.1 Building conduit-extra-1.3.5 Completed binary-conduit-1.3.1 Completed conduit-extra-1.3.5 Starting bert-1.2.2.5 Building bert-1.2.2.5 Failed to install bert-1.2.2.5 Build log ( /home/builder/.cabal/logs/ghc-8.10.2/bert-1.2.2.5-HCcVA4Z1PFT6yzkVFYWHDO.log ): cabal: Entering directory '/tmp/cabal-tmp-32408/bert-1.2.2.5' Configuring bert-1.2.2.5... Preprocessing library for bert-1.2.2.5.. Building library for bert-1.2.2.5.. src/Data/BERT/Parser.hs:1:14: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS | 1 | {-# LANGUAGE OverlappingInstances, TypeSynonymInstances, FlexibleContexts #-} | ^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:1:14: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS | 1 | {-# LANGUAGE OverlappingInstances, TypeSynonymInstances, FlexibleInstances #-} | ^^^^^^^^^^^^^^^^^^^^ [1 of 9] Compiling Data.BERT.Types ( src/Data/BERT/Types.hs, dist/build/Data/BERT/Types.o, dist/build/Data/BERT/Types.dyn_o ) [2 of 9] Compiling Data.BERT.Parser ( src/Data/BERT/Parser.hs, dist/build/Data/BERT/Parser.o, dist/build/Data/BERT/Parser.dyn_o ) [3 of 9] Compiling Data.BERT.Term ( src/Data/BERT/Term.hs, dist/build/Data/BERT/Term.o, dist/build/Data/BERT/Term.dyn_o ) src/Data/BERT/Term.hs:108:16: error: " No instance for (MonadFail (Either String)) arising from a use of fail " In the expression: fail "Invalid integer type" In an equation for readBERT: readBERT _ = fail "Invalid integer type" In the instance declaration for BERT Int | 108 | readBERT _ = fail "Invalid integer type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:113:16: error: " No instance for (MonadFail (Either String)) arising from a use of fail " In the expression: fail "Invalid bool type" In an equation for readBERT: readBERT _ = fail "Invalid bool type" In the instance declaration for BERT Bool | 113 | readBERT _ = fail "Invalid bool type" | ^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:119:16: error: " No instance for (MonadFail (Either String)) arising from a use of fail " In the expression: fail "Invalid integer type" In an equation for readBERT: readBERT _ = fail "Invalid integer type" In the instance declaration for BERT Integer | 119 | readBERT _ = fail "Invalid integer type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:124:16: error: " No instance for (MonadFail (Either String)) arising from a use of fail " In the expression: fail "Invalid floating point type" In an equation for readBERT: readBERT _ = fail "Invalid floating point type" In the instance declaration for BERT Float | 124 | readBERT _ = fail "Invalid floating point type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:132:16: error: " No instance for (MonadFail (Either String)) arising from a use of fail " In the expression: fail "Invalid string type" In an equation for readBERT: readBERT _ = fail "Invalid string type" In the instance declaration for BERT String | 132 | readBERT _ = fail "Invalid string type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:137:16: error: " No instance for (MonadFail (Either String)) arising from a use of fail " In the expression: fail "Invalid bytestring type" In an equation for readBERT: readBERT _ = fail "Invalid bytestring type" In the instance declaration for BERT ByteString | 137 | readBERT _ = fail "Invalid bytestring type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:142:16: error: " Could not deduce (MonadFail (Either String)) arising from a use of fail from the context: BERT a bound by the instance declaration at src/Data/BERT/Term.hs:139:10-29 " In the expression: fail "Invalid list type" In an equation for readBERT: readBERT _ = fail "Invalid list type" In the instance declaration for BERT [a] | 142 | readBERT _ = fail "Invalid list type" | ^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:147:16: error: " Could not deduce (MonadFail (Either String)) arising from a use of fail from the context: (BERT a, BERT b) bound by the instance declaration at src/Data/BERT/Term.hs:144:10-40 " In the expression: fail "Invalid tuple(2) type" In an equation for readBERT: readBERT _ = fail "Invalid tuple(2) type" In the instance declaration for BERT (a, b) | 147 | readBERT _ = fail "Invalid tuple(2) type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:153:16: error: " Could not deduce (MonadFail (Either String)) arising from a use of fail from the context: (BERT a, BERT b, BERT c) bound by the instance declaration at src/Data/BERT/Term.hs:149:10-51 " In the expression: fail "Invalid tuple(3) type" In an equation for readBERT: readBERT _ = fail "Invalid tuple(3) type" In the instance declaration for BERT (a, b, c) | 153 | readBERT _ = fail "Invalid tuple(3) type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:160:16: error: " Could not deduce (MonadFail (Either String)) arising from a use of fail from the context: (BERT a, BERT b, BERT c, BERT d) bound by the instance declaration at src/Data/BERT/Term.hs:155:10-62 " In the expression: fail "Invalid tuple(4) type" In an equation for readBERT: readBERT _ = fail "Invalid tuple(4) type" In the instance declaration for BERT (a, b, c, d) | 160 | readBERT _ = fail "Invalid tuple(4) type" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:168:16: error: " Could not deduce (MonadFail (Either String)) arising from a use of fail from the context: (Ord k, BERT k, BERT v) bound by the instance declaration at src/Data/BERT/Term.hs:162:10-50 " In the expression: fail "Invalid map type" In an equation for readBERT: readBERT _ = fail "Invalid map type" In the instance declaration for BERT (Map k v) | 168 | readBERT _ = fail "Invalid map type" | ^^^^^^^^^^^^^^^^^^^^^^^ src/Data/BERT/Term.hs:189:17: error: " No instance for (MonadFail PutM) arising from a use of fail " In the expression: fail "BERT atom too long (>= 256)" In an equation for putTerm: putTerm (AtomTerm value) | len < 256 = tag 100 >> put16u len >> (putL $ C.pack value) | otherwise = fail "BERT atom too long (>= 256)" where len = length value | 189 | | otherwise = fail "BERT atom too long (>= 256)" | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-32408/bert-1.2.2.5' cabal: Error: some packages failed to install: bert-1.2.2.5-HCcVA4Z1PFT6yzkVFYWHDO failed during the building phase. The exception was: ExitFailure 1 n2o-nitro-0.11.0-DbfFMHR3O3Y2qRuXYRUqii depends on n2o-nitro-0.11.0 which failed to install.