Resolving dependencies... Configuring auto-update-0.1.4... Configuring base-compat-0.9.1... Building base-compat-0.9.1... Building auto-update-0.1.4... Configuring base64-bytestring-1.0.0.1... Installed auto-update-0.1.4 Building base64-bytestring-1.0.0.1... Installed base-compat-0.9.1 Configuring bytestring-builder-0.10.8.1.0... Building bytestring-builder-0.10.8.1.0... Installed bytestring-builder-0.10.8.1.0 Configuring dlist-0.8.0.2... Configuring easy-file-0.2.1... Installed base64-bytestring-1.0.0.1 Building dlist-0.8.0.2... Building easy-file-0.2.1... Configuring fail-4.9.0.0... Installed dlist-0.8.0.2 Configuring monad-loops-0.4.3... Installed easy-file-0.2.1 Building fail-4.9.0.0... Building monad-loops-0.4.3... Configuring nats-1.1.1... Installed fail-4.9.0.0 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 monad-loops-0.4.3 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 random-1.1... Installed primitive-0.6.1.0 Building random-1.1... Configuring semigroups-0.18.2... Installed random-1.1 Building semigroups-0.18.2... Configuring silently-1.2.5... Installed semigroups-0.18.2 Building silently-1.2.5... Configuring stm-2.4.4.1... Installed network-2.6.3.1 Configuring syb-0.6... Installed silently-1.2.5 Building stm-2.4.4.1... 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 syb-0.6 Configuring transformers-compat-0.5.1.4... Installed time-locale-compat-0.1.1.3 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 stm-chans-3.0.0.4... Installed old-time-1.1.0.3 Configuring async-2.1.1... Installed text-1.2.2.1 Building stm-chans-3.0.0.4... Building async-2.1.1... Configuring vector-0.11.0.0... Installed stm-chans-3.0.0.4 Building vector-0.11.0.0... Configuring exceptions-0.8.3... Installed async-2.1.1 Building exceptions-0.8.3... Configuring mmorph-1.0.9... Installed exceptions-0.8.3 Building mmorph-1.0.9... Configuring transformers-base-0.4.4... Installed mmorph-1.0.9 Building transformers-base-0.4.4... Configuring tagged-0.8.5... Installed transformers-base-0.4.4 Building tagged-0.8.5... Installed tagged-0.8.5 Configuring unix-time-0.3.7... Building unix-time-0.3.7... Configuring blaze-builder-0.4.0.2... Installed unix-time-0.3.7 Building blaze-builder-0.4.0.2... Configuring hashable-1.2.4.0... Installed blaze-builder-0.4.0.2 Building hashable-1.2.4.0... Configuring http-api-data-0.2.4... Installed vector-0.11.0.0 Configuring path-pieces-0.2.1... Installed hashable-1.2.4.0 Building path-pieces-0.2.1... Configuring monad-control-1.0.1.0... Installed path-pieces-0.2.1 Building monad-control-1.0.1.0... Building http-api-data-0.2.4... Installed monad-control-1.0.1.0 Configuring fast-logger-2.4.7... Building fast-logger-2.4.7... Installed http-api-data-0.2.4 Configuring blaze-markup-0.7.1.0... Building blaze-markup-0.7.1.0... Configuring scientific-0.3.4.9... Installed fast-logger-2.4.7 Building scientific-0.3.4.9... Configuring streaming-commons-0.1.16... Installed blaze-markup-0.7.1.0 Building streaming-commons-0.1.16... Configuring unordered-containers-0.2.7.1... Installed scientific-0.3.4.9 Building unordered-containers-0.2.7.1... Configuring lifted-base-0.2.3.8... Installed streaming-commons-0.1.16 Building lifted-base-0.2.3.8... Configuring resource-pool-0.2.3.2... Installed lifted-base-0.2.3.8 Building resource-pool-0.2.3.2... Installed unordered-containers-0.2.7.1 Configuring blaze-html-0.8.1.2... Building blaze-html-0.8.1.2... Configuring resourcet-1.1.8.1... Installed resource-pool-0.2.3.2 Building resourcet-1.1.8.1... Configuring attoparsec-0.13.1.0... Installed resourcet-1.1.8.1 Building attoparsec-0.13.1.0... Installed attoparsec-0.13.1.0 Configuring conduit-1.2.8... Building conduit-1.2.8... Configuring aeson-0.11.2.1... Installed blaze-html-0.8.1.2 Building aeson-0.11.2.1... Installed conduit-1.2.8 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 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-23280/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-23280/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