Resolving dependencies... Starting StateVar-1.2.2 Starting dlist-1.0 Starting base-orphans-0.8.6 Starting base-compat-0.12.1 Building StateVar-1.2.2 Building dlist-1.0 Building base-orphans-0.8.6 Building base-compat-0.12.1 Completed StateVar-1.2.2 Starting indexed-traversable-0.1.2 Building indexed-traversable-0.1.2 Completed dlist-1.0 Starting integer-logarithms-1.0.3.1 Building integer-logarithms-1.0.3.1 Completed base-orphans-0.8.6 Starting primitive-0.7.3.0 Completed integer-logarithms-1.0.3.1 Starting splitmix-0.1.0.4 Building primitive-0.7.3.0 Completed base-compat-0.12.1 Starting tagged-0.8.6.1 Building splitmix-0.1.0.4 Completed indexed-traversable-0.1.2 Starting th-abstraction-0.4.3.0 Building tagged-0.8.6.1 Building th-abstraction-0.4.3.0 Completed splitmix-0.1.0.4 Starting transformers-compat-0.7.1 Building transformers-compat-0.7.1 Completed tagged-0.8.6.1 Starting validity-0.11.0.1 Building validity-0.11.0.1 Completed th-abstraction-0.4.3.0 Starting contravariant-1.5.5 Building contravariant-1.5.5 Completed validity-0.11.0.1 Starting hashable-1.4.0.0 Completed transformers-compat-0.7.1 Starting random-1.2.1 Building hashable-1.4.0.0 Building random-1.2.1 Completed contravariant-1.5.5 Starting distributive-0.6.2.1 Building distributive-0.6.2.1 Completed hashable-1.4.0.0 Starting unordered-containers-0.2.15.0 Building unordered-containers-0.2.15.0 Completed distributive-0.6.2.1 Starting time-compat-1.9.6.1 Building time-compat-1.9.6.1 Completed primitive-0.7.3.0 Starting text-short-0.1.4 Building text-short-0.1.4 Completed random-1.2.1 Starting data-fix-0.3.2 Building data-fix-0.3.2 Completed time-compat-1.9.6.1 Starting OneTuple-0.3.1 Building OneTuple-0.3.1 Completed text-short-0.1.4 Starting comonad-5.0.8 Building comonad-5.0.8 Completed data-fix-0.3.2 Starting vector-0.12.3.1 Building vector-0.12.3.1 Completed OneTuple-0.3.1 Starting scientific-0.3.7.0 Building scientific-0.3.7.0 Completed unordered-containers-0.2.15.0 Starting uuid-types-1.0.5 Completed comonad-5.0.8 Starting base-compat-batteries-0.12.1 Building uuid-types-1.0.5 Building base-compat-batteries-0.12.1 Completed scientific-0.3.7.0 Starting bifunctors-5.5.11 Building bifunctors-5.5.11 Completed uuid-types-1.0.5 Starting validity-scientific-0.2.0.3 Building validity-scientific-0.2.0.3 Completed validity-scientific-0.2.0.3 Starting attoparsec-0.14.2 Building attoparsec-0.14.2 Completed base-compat-batteries-0.12.1 Completed bifunctors-5.5.11 Starting assoc-1.0.2 Starting semigroupoids-5.3.6 Building assoc-1.0.2 Building semigroupoids-5.3.6 Completed attoparsec-0.14.2 Completed assoc-1.0.2 Starting these-1.1.1.1 Building these-1.1.1.1 Completed these-1.1.1.1 Starting strict-0.4.0.1 Building strict-0.4.0.1 Completed strict-0.4.0.1 Completed semigroupoids-5.3.6 Completed vector-0.12.3.1 Starting indexed-traversable-instances-0.1.1 Building indexed-traversable-instances-0.1.1 Completed indexed-traversable-instances-0.1.1 Starting witherable-0.4.2 Starting semialign-1.2.0.1 Building witherable-0.4.2 Building semialign-1.2.0.1 Completed semialign-1.2.0.1 Completed witherable-0.4.2 Starting aeson-2.0.2.0 Building aeson-2.0.2.0 Completed aeson-2.0.2.0 Starting autodocodec-0.0.0.0 Building autodocodec-0.0.0.0 Failed to install autodocodec-0.0.0.0 Build log ( /home/builder/.cabal/logs/ghc-8.10.2/autodocodec-0.0.0.0-8qw3YXbisJ4HVISO0nIB94.log ): cabal: Entering directory '/tmp/cabal-tmp-27274/autodocodec-0.0.0.0' Configuring autodocodec-0.0.0.0... Preprocessing library for autodocodec-0.0.0.0.. Building library for autodocodec-0.0.0.0.. [1 of 8] Compiling Autodocodec.Codec ( src/Autodocodec/Codec.hs, dist/build/Autodocodec/Codec.o, dist/build/Autodocodec/Codec.dyn_o ) [2 of 8] Compiling Autodocodec.Class ( src/Autodocodec/Class.hs, dist/build/Autodocodec/Class.o, dist/build/Autodocodec/Class.dyn_o ) [3 of 8] Compiling Autodocodec.DerivingVia ( src/Autodocodec/DerivingVia.hs, dist/build/Autodocodec/DerivingVia.o, dist/build/Autodocodec/DerivingVia.dyn_o ) [4 of 8] Compiling Autodocodec.Aeson.Encode ( src/Autodocodec/Aeson/Encode.hs, dist/build/Autodocodec/Aeson/Encode.o, dist/build/Autodocodec/Aeson/Encode.dyn_o ) src/Autodocodec/Aeson/Encode.hs:52:33: error: " Couldn't match expected type JSON.Key with actual type Text " In the first argument of (JSON..=), namely k In the expression: k JSON..= go a c In a case alternative: RequiredKeyCodec k c _ -> k JSON..= go a c | 52 | RequiredKeyCodec k c _ -> k JSON..= go a c | ^ src/Autodocodec/Aeson/Encode.hs:55:19: error: " Couldn't match expected type JSON.Key with actual type Text " In the first argument of (JSON..=), namely k In the expression: k JSON..= go b c In a case alternative: Just b -> k JSON..= go b c | 55 | Just b -> k JSON..= go b c | ^ src/Autodocodec/Aeson/Encode.hs:96:43: error: " Couldn't match expected type JSON.Key with actual type Text " In the first argument of JSON.pair, namely k In the expression: JSON.pair k (go a c) In a case alternative: RequiredKeyCodec k c _ -> JSON.pair k (go a c) | 96 | RequiredKeyCodec k c _ -> JSON.pair k (go a c) | ^ src/Autodocodec/Aeson/Encode.hs:99:29: error: " Couldn't match expected type JSON.Key with actual type Text " In the first argument of JSON.pair, namely k In the expression: JSON.pair k (go b c) In a case alternative: Just b -> JSON.pair k (go b c) | 99 | Just b -> JSON.pair k (go b c) | ^ cabal: Leaving directory '/tmp/cabal-tmp-27274/autodocodec-0.0.0.0' cabal: Error: some packages failed to install: autodocodec-0.0.0.0-8qw3YXbisJ4HVISO0nIB94 failed during the building phase. The exception was: ExitFailure 1