Resolving dependencies... Starting StateVar-1.2.2 Starting base64-bytestring-1.2.1.0 Starting base-orphans-0.8.6 Starting base-compat-0.12.1 Building StateVar-1.2.2 Building base64-bytestring-1.2.1.0 Building base-orphans-0.8.6 Building base-compat-0.12.1 Completed StateVar-1.2.2 Starting dlist-1.0 Building dlist-1.0 Completed base64-bytestring-1.2.1.0 Starting indexed-traversable-0.1.2 Building indexed-traversable-0.1.2 Completed base-orphans-0.8.6 Starting integer-logarithms-1.0.3.1 Completed dlist-1.0 Starting primitive-0.7.3.0 Building integer-logarithms-1.0.3.1 Completed base-compat-0.12.1 Starting safe-exceptions-0.1.7.2 Building primitive-0.7.3.0 Building safe-exceptions-0.1.7.2 Completed indexed-traversable-0.1.2 Starting split-0.2.3.4 Completed integer-logarithms-1.0.3.1 Starting splitmix-0.1.0.4 Building split-0.2.3.4 Building splitmix-0.1.0.4 Completed safe-exceptions-0.1.7.2 Starting tagged-0.8.6.1 Building tagged-0.8.6.1 Completed split-0.2.3.4 Starting th-abstraction-0.4.3.0 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 unliftio-core-0.2.0.1 Building unliftio-core-0.2.0.1 Completed unliftio-core-0.2.0.1 Starting contravariant-1.5.5 Completed transformers-compat-0.7.1 Starting hashable-1.4.0.1 Building contravariant-1.5.5 Building hashable-1.4.0.1 Completed th-abstraction-0.4.3.0 Starting random-1.2.1 Building random-1.2.1 Completed contravariant-1.5.5 Starting distributive-0.6.2.1 Building distributive-0.6.2.1 Completed primitive-0.7.3.0 Starting transformers-base-0.4.6 Completed hashable-1.4.0.1 Starting vector-0.12.3.1 Building transformers-base-0.4.6 Building vector-0.12.3.1 Completed distributive-0.6.2.1 Starting resourcet-1.2.4.3 Completed transformers-base-0.4.6 Starting unordered-containers-0.2.16.0 Building resourcet-1.2.4.3 Building unordered-containers-0.2.16.0 Completed resourcet-1.2.4.3 Starting time-compat-1.9.6.1 Completed random-1.2.1 Starting text-short-0.1.5 Building time-compat-1.9.6.1 Building text-short-0.1.5 Completed time-compat-1.9.6.1 Starting scientific-0.3.7.0 Completed text-short-0.1.5 Starting data-fix-0.3.2 Building scientific-0.3.7.0 Building data-fix-0.3.2 Completed unordered-containers-0.2.16.0 Starting OneTuple-0.3.1 Completed data-fix-0.3.2 Starting comonad-5.0.8 Building OneTuple-0.3.1 Building comonad-5.0.8 Completed scientific-0.3.7.0 Starting monad-control-1.0.3.1 Building monad-control-1.0.3.1 Completed OneTuple-0.3.1 Starting uuid-types-1.0.5 Building uuid-types-1.0.5 Completed monad-control-1.0.3.1 Starting QuickCheck-2.14.2 Completed comonad-5.0.8 Starting attoparsec-0.14.3 Building QuickCheck-2.14.2 Building attoparsec-0.14.3 Completed uuid-types-1.0.5 Starting base-compat-batteries-0.12.1 Building base-compat-batteries-0.12.1 Completed base-compat-batteries-0.12.1 Starting bifunctors-5.5.11 Building bifunctors-5.5.11 Completed attoparsec-0.14.3 Completed vector-0.12.3.1 Starting indexed-traversable-instances-0.1.1 Starting vector-algorithms-0.8.0.4 Building vector-algorithms-0.8.0.4 Building indexed-traversable-instances-0.1.1 Completed QuickCheck-2.14.2 Completed bifunctors-5.5.11 Starting assoc-1.0.2 Starting semigroupoids-5.3.6 Completed indexed-traversable-instances-0.1.1 Starting witherable-0.4.2 Building assoc-1.0.2 Building semigroupoids-5.3.6 Building witherable-0.4.2 Completed assoc-1.0.2 Starting these-1.1.1.1 Building these-1.1.1.1 Completed witherable-0.4.2 Completed these-1.1.1.1 Starting strict-0.4.0.1 Building strict-0.4.0.1 Completed vector-algorithms-0.8.0.4 Starting mono-traversable-1.0.15.3 Building mono-traversable-1.0.15.3 Completed strict-0.4.0.1 Completed semigroupoids-5.3.6 Starting semialign-1.2.0.1 Building semialign-1.2.0.1 Completed semialign-1.2.0.1 Starting aeson-2.0.3.0 Building aeson-2.0.3.0 Completed mono-traversable-1.0.15.3 Starting conduit-1.3.4.2 Building conduit-1.3.4.2 Completed conduit-1.3.4.2 Starting libyaml-0.1.2 Building libyaml-0.1.2 Completed libyaml-0.1.2 Completed aeson-2.0.3.0 Starting groundhog-0.12.0 Starting yaml-0.11.7.0 Building groundhog-0.12.0 Building yaml-0.11.7.0 Completed yaml-0.11.7.0 Completed groundhog-0.12.0 Starting groundhog-th-0.12 Building groundhog-th-0.12 Failed to install groundhog-th-0.12 Build log ( /home/builder/.cabal/logs/ghc-8.10.2/groundhog-th-0.12-IfCrpOkfpx11bPDJ8njXgJ.log ): cabal: Entering directory '/tmp/cabal-tmp-7787/groundhog-th-0.12' Configuring groundhog-th-0.12... Preprocessing library for groundhog-th-0.12.. Building library for groundhog-th-0.12.. [1 of 3] Compiling Database.Groundhog.TH.Settings ( Database/Groundhog/TH/Settings.hs, dist/build/Database/Groundhog/TH/Settings.o, dist/build/Database/Groundhog/TH/Settings.dyn_o ) Database/Groundhog/TH/Settings.hs:234:31: error: " Couldn't match type Data.Aeson.KeyMap.KeyMap Value with H.HashMap k0 a0 Expected type: H.HashMap k0 a0 Actual type: Object " In the second argument of H.member, namely v In the expression: H.member "entity" v In a stmt of a pattern guard for a case alternative: H.member "entity" v | 234 | _ | H.member "entity" v -> (\x -> p {psEntities = x : psEntities}) <$> parseJSON obj | ^ Database/Groundhog/TH/Settings.hs:235:33: error: " Couldn't match type Data.Aeson.KeyMap.KeyMap Value with H.HashMap k1 a1 Expected type: H.HashMap k1 a1 Actual type: Object " In the second argument of H.member, namely v In the expression: H.member "embedded" v In a stmt of a pattern guard for a case alternative: H.member "embedded" v | 235 | _ | H.member "embedded" v -> (\x -> p {psEmbeddeds = x : psEmbeddeds}) <$> parseJSON obj | ^ Database/Groundhog/TH/Settings.hs:236:34: error: " Couldn't match type Data.Aeson.KeyMap.KeyMap Value with H.HashMap k2 a2 Expected type: H.HashMap k2 a2 Actual type: Object " In the second argument of H.member, namely v In the expression: H.member "primitive" v In a stmt of a pattern guard for a case alternative: H.member "primitive" v | 236 | _ | H.member "primitive" v -> (\x -> p {psPrimitives = x : psPrimitives}) <$> parseJSON obj | ^ Database/Groundhog/TH/Settings.hs:249:37: error: " Couldn't match type Data.Aeson.KeyMap.KeyMap Value with H.HashMap k3 a3 Expected type: H.HashMap k3 a3 Actual type: Object " In the second argument of H.member, namely v In the first argument of when, namely (H.member "representation" v) In the expression: when (H.member "representation" v) | 249 | when (H.member "representation" v) $ fail $ "parseJSON: field 'representation' is deprecated. Use 'converter' instead: " ++ show v | ^ Database/Groundhog/TH/Settings.hs:306:19: error: " Couldn't match expected type Key with actual type Text " In the first argument of (.=), namely name In the first argument of (<$>), namely (name .=) In the expression: (name .=) <$> value | 306 | name .=? value = (name .=) <$> value | ^^^^ Database/Groundhog/TH/Settings.hs:310:26: error: " Couldn't match expected type Key with actual type Text " In the first argument of (.=), namely name In the second argument of ($), namely name .= value In the expression: Just $ name .= value | 310 | Just (_ : _) -> Just $ name .= value | ^^^^ cabal: Leaving directory '/tmp/cabal-tmp-7787/groundhog-th-0.12' cabal: Error: some packages failed to install: groundhog-th-0.12-IfCrpOkfpx11bPDJ8njXgJ failed during the building phase. The exception was: ExitFailure 1