Resolving dependencies... Configuring auto-update-0.1.4... Configuring base-compat-0.9.1... Building auto-update-0.1.4... Building base-compat-0.9.1... Configuring base64-bytestring-1.0.0.1... Installed auto-update-0.1.4 Building base64-bytestring-1.0.0.1... Configuring bytestring-builder-0.10.8.1.0... Installed base-compat-0.9.1 Building bytestring-builder-0.10.8.1.0... Configuring dlist-0.8.0.2... Installed bytestring-builder-0.10.8.1.0 Configuring fail-4.9.0.0... Installed base64-bytestring-1.0.0.1 Building dlist-0.8.0.2... Building fail-4.9.0.0... Configuring monad-loops-0.4.3... Installed fail-4.9.0.0 Building monad-loops-0.4.3... Configuring easy-file-0.2.1... Installed dlist-0.8.0.2 Configuring nats-1.1.1... Installed monad-loops-0.4.3 Building easy-file-0.2.1... Building nats-1.1.1... Configuring mtl-2.2.1... Installed nats-1.1.1 Building mtl-2.2.1... Configuring old-locale-1.0.0.7... Installed easy-file-0.2.1 Building old-locale-1.0.0.7... Configuring primitive-0.6.1.0... Installed old-locale-1.0.0.7 Building primitive-0.6.1.0... Configuring network-2.6.3.1... Installed mtl-2.2.1 Building network-2.6.3.1... Configuring semigroups-0.18.2... Installed primitive-0.6.1.0 Building semigroups-0.18.2... Configuring random-1.1... Installed semigroups-0.18.2 Building random-1.1... Configuring silently-1.2.5... Installed random-1.1 Building silently-1.2.5... Configuring stm-2.4.4.1... Installed network-2.6.3.1 Building stm-2.4.4.1... Configuring syb-0.6... Installed silently-1.2.5 Building syb-0.6... Configuring time-locale-compat-0.1.1.3... Installed stm-2.4.4.1 Building time-locale-compat-0.1.1.3... Configuring text-1.2.2.1... Installed time-locale-compat-0.1.1.3 Configuring transformers-compat-0.5.1.4... Installed syb-0.6 Building text-1.2.2.1... Building transformers-compat-0.5.1.4... Configuring zlib-0.6.1.2... Installed transformers-compat-0.5.1.4 Building zlib-0.6.1.2... Installed zlib-0.6.1.2 Configuring old-time-1.1.0.3... Building old-time-1.1.0.3... Configuring async-2.1.1... Installed old-time-1.1.0.3 Building async-2.1.1... Configuring stm-chans-3.0.0.4... Installed async-2.1.1 Configuring vector-0.11.0.0... Installed text-1.2.2.1 Building vector-0.11.0.0... Building stm-chans-3.0.0.4... Configuring tagged-0.8.5... Installed stm-chans-3.0.0.4 Building tagged-0.8.5... Configuring mmorph-1.0.9... Installed tagged-0.8.5 Building mmorph-1.0.9... Configuring transformers-base-0.4.4... Installed mmorph-1.0.9 Building transformers-base-0.4.4... Configuring exceptions-0.8.3... Installed transformers-base-0.4.4 Building exceptions-0.8.3... Installed exceptions-0.8.3 Configuring unix-time-0.3.7... Building unix-time-0.3.7... Configuring hashable-1.2.4.0... Installed unix-time-0.3.7 Building hashable-1.2.4.0... Configuring blaze-builder-0.4.0.2... Installed vector-0.11.0.0 Building blaze-builder-0.4.0.2... Configuring http-api-data-0.2.4... Installed hashable-1.2.4.0 Configuring monad-control-1.0.1.0... Installed blaze-builder-0.4.0.2 Building monad-control-1.0.1.0... Building http-api-data-0.2.4... Configuring path-pieces-0.2.1... Installed monad-control-1.0.1.0 Building path-pieces-0.2.1... Installed http-api-data-0.2.4 Configuring fast-logger-2.4.7... Building fast-logger-2.4.7... Configuring unordered-containers-0.2.7.1... Installed path-pieces-0.2.1 Building unordered-containers-0.2.7.1... Configuring scientific-0.3.4.9... Installed fast-logger-2.4.7 Building scientific-0.3.4.9... Configuring blaze-markup-0.7.1.0... Installed scientific-0.3.4.9 Building blaze-markup-0.7.1.0... Configuring lifted-base-0.2.3.8... Installed unordered-containers-0.2.7.1 Building lifted-base-0.2.3.8... Configuring streaming-commons-0.1.16... Installed blaze-markup-0.7.1.0 Building streaming-commons-0.1.16... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.8 Building resource-pool-0.2.3.2... Installed resource-pool-0.2.3.2 Configuring attoparsec-0.13.1.0... Building attoparsec-0.13.1.0... Configuring resourcet-1.1.8.1... Installed streaming-commons-0.1.16 Building resourcet-1.1.8.1... Configuring blaze-html-0.8.1.2... Installed resourcet-1.1.8.1 Building blaze-html-0.8.1.2... Installed attoparsec-0.13.1.0 Configuring conduit-1.2.8... Building conduit-1.2.8... Configuring aeson-0.11.2.1... Installed conduit-1.2.8 Building aeson-0.11.2.1... Installed blaze-html-0.8.1.2 Configuring conduit-extra-1.1.15... Building conduit-extra-1.1.15... Installed conduit-extra-1.1.15 Configuring monad-logger-0.3.20.1... Installed aeson-0.11.2.1 Configuring aeson-compat-0.3.6... Building monad-logger-0.3.20.1... Building aeson-compat-0.3.6... Installed aeson-compat-0.3.6 Installed monad-logger-0.3.20.1 Configuring persistent-2.6... Building persistent-2.6... Installed persistent-2.6 Downloading persistent-template-2.1.7... Configuring persistent-template-2.1.7... Building persistent-template-2.1.7... Failed to install persistent-template-2.1.7 Build log ( /home/builder/.cabal/logs/persistent-template-2.1.7.log ): cabal: Entering directory '/tmp/cabal-tmp-18442/persistent-template-2.1.7' Configuring persistent-template-2.1.7... Building persistent-template-2.1.7... Preprocessing library persistent-template-2.1.7... Database/Persist/TH.hs:12:14: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS [1 of 1] Compiling Database.Persist.TH ( Database/Persist/TH.hs, dist/build/Database/Persist/TH.o ) Database/Persist/TH.hs:968:9: error: • Couldn't match expected type ‘Dec’ with actual type ‘[Dec] -> Dec’ • In the expression: InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, keyToValues', keyFromValues', ....] In the first argument of ‘mappend’, namely ‘[TySynD (keyIdName t) [] $ ConT ''Key `AppT` ConT (mkName nameS), InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, ....]]’ In the second argument of ‘mappend’, namely ‘([TySynD (keyIdName t) [] $ ConT ''Key `AppT` ConT (mkName nameS), InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, ....]] `mappend` lenses)’ Database/Persist/TH.hs:968:19: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[Pred]’ • In the first argument of ‘InstanceD’, namely ‘instanceConstraint’ In the expression: InstanceD instanceConstraint clazz In the expression: InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, keyToValues', keyFromValues', ....] Database/Persist/TH.hs:968:38: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘clazz’ In the expression: InstanceD instanceConstraint clazz In the expression: InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, keyToValues', keyFromValues', ....] Database/Persist/TH.hs:969:9: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the second argument of ‘($)’, namely ‘[uniqueTypeDec mps t, keyTypeDec, keyToValues', keyFromValues', ....]’ In the expression: InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, keyToValues', keyFromValues', ....] In the first argument of ‘mappend’, namely ‘[TySynD (keyIdName t) [] $ ConT ''Key `AppT` ConT (mkName nameS), InstanceD instanceConstraint clazz $ [uniqueTypeDec mps t, keyTypeDec, ....]]’ Database/Persist/TH.hs:1209:9: error: • Couldn't match type ‘[Dec] -> Dec’ with ‘Dec’ Expected type: Q Dec Actual type: Q ([Dec] -> Dec) • In a stmt of a 'do' block: return $ InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]] In the expression: do { let deps = filter (\ x -> ...) allDeps; key <- newName "key"; let del = VarE ...; let dcw = VarE ...; .... } In an equation for ‘go’: go allDeps (EntityDef {entityHaskell = name}) = do { let deps = ...; key <- newName "key"; let del = ...; .... } Database/Persist/TH.hs:1211:13: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[Pred]’ • In the first argument of ‘InstanceD’, namely ‘[mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT]’ In the second argument of ‘($)’, namely ‘InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]]’ In a stmt of a 'do' block: return $ InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]] Database/Persist/TH.hs:1214:14: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘(ConT ''DeleteCascade `AppT` entityT `AppT` backendT)’ In the second argument of ‘($)’, namely ‘InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]]’ In a stmt of a 'do' block: return $ InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]] Database/Persist/TH.hs:1215:13: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the third argument of ‘InstanceD’, namely ‘[FunD 'deleteCascade [normalClause [...] (DoE stmts)]]’ In the second argument of ‘($)’, namely ‘InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]]’ In a stmt of a 'do' block: return $ InstanceD [mkClassP ''PersistQuery [backendT], mkEqualP (ConT ''PersistEntityBackend `AppT` entityT) backendT] (ConT ''DeleteCascade `AppT` entityT `AppT` backendT) [FunD 'deleteCascade [normalClause [...] (DoE stmts)]] Database/Persist/TH.hs:1254:5: error: • Couldn't match type ‘[Dec] -> Dec’ with ‘Dec’ Expected type: [Dec] -> Dec Actual type: Type -> [Dec] -> Dec • Probable cause: ‘InstanceD’ is applied to too few arguments In the expression: InstanceD ctx (ConT clazz `AppT` typ) In an equation for ‘typeInstanceD’: typeInstanceD clazz hasBackend typ = InstanceD ctx (ConT clazz `AppT` typ) where ctx | hasBackend = [mkClassP ... ...] | otherwise = [] Database/Persist/TH.hs:1254:15: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[Pred]’ • In the first argument of ‘InstanceD’, namely ‘ctx’ In the expression: InstanceD ctx (ConT clazz `AppT` typ) In an equation for ‘typeInstanceD’: typeInstanceD clazz hasBackend typ = InstanceD ctx (ConT clazz `AppT` typ) where ctx | hasBackend = [mkClassP ... ...] | otherwise = [] Database/Persist/TH.hs:1254:20: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘(ConT clazz `AppT` typ)’ In the expression: InstanceD ctx (ConT clazz `AppT` typ) In an equation for ‘typeInstanceD’: typeInstanceD clazz hasBackend typ = InstanceD ctx (ConT clazz `AppT` typ) where ctx | hasBackend = [mkClassP ... ...] | otherwise = [] cabal: Leaving directory '/tmp/cabal-tmp-18442/persistent-template-2.1.7' cabal: Error: some packages failed to install: persistent-template-2.1.7 failed during the building phase. The exception was: ExitFailure 1