Resolving dependencies... Configuring base-orphans-0.8... Configuring base-compat-0.10.4... Building base-orphans-0.8... Building base-compat-0.10.4... Installed base-orphans-0.8 Configuring base64-bytestring-1.0.0.1... Building base64-bytestring-1.0.0.1... Installed base64-bytestring-1.0.0.1 Configuring blaze-builder-0.4.1.0... Installed base-compat-0.10.4 Configuring dlist-0.8.0.4... Building blaze-builder-0.4.1.0... Building dlist-0.8.0.4... Installed dlist-0.8.0.4 Configuring hashable-1.2.7.0... Installed blaze-builder-0.4.1.0 Configuring integer-logarithms-1.0.2.1... Building hashable-1.2.7.0... Building integer-logarithms-1.0.2.1... Installed integer-logarithms-1.0.2.1 Configuring primitive-0.6.4.0... Building primitive-0.6.4.0... Installed hashable-1.2.7.0 Configuring random-1.1... Building random-1.1... Installed random-1.1 Configuring split-0.2.3.3... Building split-0.2.3.3... Installed split-0.2.3.3 Configuring tagged-0.8.6... Building tagged-0.8.6... Installed tagged-0.8.6 Configuring th-abstraction-0.2.8.0... Building th-abstraction-0.2.8.0... Installed primitive-0.6.4.0 Configuring time-locale-compat-0.1.1.5... Building time-locale-compat-0.1.1.5... Installed time-locale-compat-0.1.1.5 Configuring transformers-compat-0.6.2... Building transformers-compat-0.6.2... Installed th-abstraction-0.2.8.0 Configuring unliftio-core-0.1.2.0... Building unliftio-core-0.1.2.0... Installed transformers-compat-0.6.2 Configuring unordered-containers-0.2.9.0... Installed unliftio-core-0.1.2.0 Configuring uuid-types-1.0.3... Building unordered-containers-0.2.9.0... Building uuid-types-1.0.3... Installed uuid-types-1.0.3 Configuring vector-0.12.0.1... Building vector-0.12.0.1... Installed unordered-containers-0.2.9.0 Configuring scientific-0.3.6.2... Building scientific-0.3.6.2... Installed scientific-0.3.6.2 Configuring transformers-base-0.4.5.2... Building transformers-base-0.4.5.2... Installed transformers-base-0.4.5.2 Configuring exceptions-0.10.0... Building exceptions-0.10.0... Installed exceptions-0.10.0 Configuring attoparsec-0.13.2.2... Building attoparsec-0.13.2.2... Installed attoparsec-0.13.2.2 Configuring monad-control-1.0.2.3... Building monad-control-1.0.2.3... Installed monad-control-1.0.2.3 Configuring safe-exceptions-0.1.7.0... Building safe-exceptions-0.1.7.0... Installed vector-0.12.0.1 Configuring resourcet-1.2.1... Building resourcet-1.2.1... Installed safe-exceptions-0.1.7.0 Configuring vector-algorithms-0.7.0.4... Building vector-algorithms-0.7.0.4... Installed resourcet-1.2.1 Configuring aeson-1.4.0.0... Building aeson-1.4.0.0... Installed vector-algorithms-0.7.0.4 Configuring mono-traversable-1.0.9.0... Building mono-traversable-1.0.9.0... Installed mono-traversable-1.0.9.0 Configuring conduit-1.3.0.3... Building conduit-1.3.0.3... Installed aeson-1.4.0.0 Configuring groundhog-0.9.0... Building groundhog-0.9.0... Installed conduit-1.3.0.3 Configuring yaml-0.10.1.1... Building yaml-0.10.1.1... Installed groundhog-0.9.0 Installed yaml-0.10.1.1 Configuring groundhog-th-0.9.0... Building groundhog-th-0.9.0... Failed to install groundhog-th-0.9.0 Build log ( /home/builder/.cabal/logs/ghc-8.4.3/groundhog-th-0.9.0-IZigFnzrywX7sq8Sq7IorS.log ): cabal: Entering directory '/tmp/cabal-tmp-1073/groundhog-th-0.9.0' Configuring groundhog-th-0.9.0... Preprocessing library for groundhog-th-0.9.0.. Building library for groundhog-th-0.9.0.. [1 of 3] Compiling Database.Groundhog.TH.Settings ( Database/Groundhog/TH/Settings.hs, dist/build/Database/Groundhog/TH/Settings.o ) [2 of 3] Compiling Database.Groundhog.TH.CodeGen ( Database/Groundhog/TH/CodeGen.hs, dist/build/Database/Groundhog/TH/CodeGen.o ) Database/Groundhog/TH/CodeGen.hs:32:1: warning: [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 32 | import Control.Applicative | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Database/Groundhog/TH/CodeGen.hs:756:12: warning: [-Wname-shadowing] This binding for ‘<>’ shadows the existing binding imported from ‘Prelude’ at Database/Groundhog/TH/CodeGen.hs:4:8-36 (and originally defined in ‘GHC.Base’) | 756 | foldType f (<>) = go where | ^^^^ Database/Groundhog/TH/CodeGen.hs:825:12: warning: [-Wname-shadowing] This binding for ‘cxt’ shadows the existing binding imported from ‘Language.Haskell.TH’ at Database/Groundhog/TH/CodeGen.hs:30:1-26 (and originally defined in ‘Language.Haskell.TH.Lib.Internal’) | 825 | dataInstD' cxt name types constrs derives = | ^^^ Database/Groundhog/TH/CodeGen.hs:835:8: warning: [-Wname-shadowing] This binding for ‘cxt’ shadows the existing binding imported from ‘Language.Haskell.TH’ at Database/Groundhog/TH/CodeGen.hs:30:1-26 (and originally defined in ‘Language.Haskell.TH.Lib.Internal’) | 835 | dataD' cxt name types constrs derives = | ^^^ [3 of 3] Compiling Database.Groundhog.TH ( Database/Groundhog/TH.hs, dist/build/Database/Groundhog/TH.o ) Database/Groundhog/TH.hs:601:12: error: • Couldn't match expected type ‘([Data.Yaml.Internal.Warning], Either String a1)’ with actual type ‘Either String b0’ • In the pattern: Left err In the pattern: Right (Left err) In a case alternative: Right (Left err) -> fail err • Relevant bindings include result :: Either ParseException ([Data.Yaml.Internal.Warning], Either String a1) (bound at Database/Groundhog/TH.hs:590:3) | 601 | Right (Left err) -> fail err | ^^^^^^^^ Database/Groundhog/TH.hs:602:12: error: • Couldn't match expected type ‘([Data.Yaml.Internal.Warning], Either String a1)’ with actual type ‘Either a0 PersistDefinitions’ • In the pattern: Right result' In the pattern: Right (Right result') In a case alternative: Right (Right result') -> lift (result' :: PersistDefinitions) • Relevant bindings include result :: Either ParseException ([Data.Yaml.Internal.Warning], Either String a1) (bound at Database/Groundhog/TH.hs:590:3) | 602 | Right (Right result') -> lift (result' :: PersistDefinitions) | ^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-1073/groundhog-th-0.9.0' cabal: Error: some packages failed to install: groundhog-th-0.9.0-IZigFnzrywX7sq8Sq7IorS failed during the building phase. The exception was: ExitFailure 1