Resolving dependencies... Configuring ansi-terminal-0.6.2.3... Configuring appar-0.1.4... Building ansi-terminal-0.6.2.3... Building appar-0.1.4... Installed appar-0.1.4 Configuring auto-update-0.1.4... Building auto-update-0.1.4... Configuring base-compat-0.9.1... Installed ansi-terminal-0.6.2.3 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 byteorder-1.0.4... Installed base-compat-0.9.1 Configuring byteable-0.1.1... Installed base64-bytestring-1.0.0.1 Building byteorder-1.0.4... Building byteable-0.1.1... Configuring cereal-0.5.4.0... Installed byteorder-1.0.4 Configuring bytestring-builder-0.10.8.1.0... Installed byteable-0.1.1 Building cereal-0.5.4.0... Building bytestring-builder-0.10.8.1.0... Configuring data-default-class-0.1.2.0... Installed bytestring-builder-0.10.8.1.0 Building data-default-class-0.1.2.0... Configuring deepseq-generics-0.2.0.0... Installed data-default-class-0.1.2.0 Building deepseq-generics-0.2.0.0... Configuring dlist-0.8.0.2... Installed deepseq-generics-0.2.0.0 Building dlist-0.8.0.2... Configuring easy-file-0.2.1... Installed cereal-0.5.4.0 Building easy-file-0.2.1... Configuring entropy-0.3.7... Installed dlist-0.8.0.2 Configuring fail-4.9.0.0... Installed easy-file-0.2.1 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 mtl-2.2.1... Installed monad-loops-0.4.3 Building entropy-0.3.7... Building mtl-2.2.1... Configuring memory-0.13... Installed entropy-0.3.7 Building memory-0.13... Configuring nats-1.1.1... Installed mtl-2.2.1 Building nats-1.1.1... Configuring network-2.6.3.1... Installed nats-1.1.1 Building network-2.6.3.1... Configuring old-locale-1.0.0.7... Installed memory-0.13 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 random-1.1... Installed network-2.6.3.1 Configuring semigroups-0.18.2... Installed primitive-0.6.1.0 Building random-1.1... Building semigroups-0.18.2... Configuring safe-0.3.10... Installed semigroups-0.18.2 Building safe-0.3.10... Configuring setenv-0.1.1.3... Installed random-1.1 Building setenv-0.1.1.3... Configuring silently-1.2.5... Installed safe-0.3.10 Building silently-1.2.5... Configuring stm-2.4.4.1... Installed setenv-0.1.1.3 Building stm-2.4.4.1... Configuring stringsearch-0.3.6.6... Installed silently-1.2.5 Building stringsearch-0.3.6.6... Configuring syb-0.6... Installed stm-2.4.4.1 Building syb-0.6... Configuring th-lift-0.7.6... Installed stringsearch-0.3.6.6 Building th-lift-0.7.6... Configuring text-1.2.2.1... Installed syb-0.6 Building text-1.2.2.1... Configuring transformers-compat-0.5.1.4... Installed th-lift-0.7.6 Building transformers-compat-0.5.1.4... Configuring time-locale-compat-0.1.1.3... Installed transformers-compat-0.5.1.4 Building time-locale-compat-0.1.1.3... Configuring unix-compat-0.4.2.0... Installed time-locale-compat-0.1.1.3 Building unix-compat-0.4.2.0... Configuring word8-0.1.2... Installed unix-compat-0.4.2.0 Building word8-0.1.2... Configuring zlib-0.6.1.2... Installed word8-0.1.2 Building zlib-0.6.1.2... Installed text-1.2.2.1 Configuring data-default-instances-containers-0.0.1... Configuring data-default-instances-dlist-0.0.1... Installed zlib-0.6.1.2 Building data-default-instances-containers-0.0.1... Building data-default-instances-dlist-0.0.1... Installed data-default-instances-containers-0.0.1 Configuring securemem-0.1.9... Configuring data-default-instances-old-locale-0.0.1... Installed data-default-instances-dlist-0.0.1 Building securemem-0.1.9... Building data-default-instances-old-locale-0.0.1... Configuring iproute-1.7.1... Installed data-default-instances-old-locale-0.0.1 Configuring old-time-1.1.0.3... Installed securemem-0.1.9 Building iproute-1.7.1... Building old-time-1.1.0.3... Configuring simple-sendfile-0.2.25... Installed iproute-1.7.1 Building simple-sendfile-0.2.25... Configuring async-2.1.1... Installed old-time-1.1.0.3 Building async-2.1.1... Configuring vector-0.11.0.0... Installed simple-sendfile-0.2.25 Building vector-0.11.0.0... Configuring stm-chans-3.0.0.4... Installed async-2.1.1 Building stm-chans-3.0.0.4... Configuring th-expand-syns-0.4.1.0... Installed stm-chans-3.0.0.4 Building th-expand-syns-0.4.1.0... Configuring mmorph-1.0.9... Installed th-expand-syns-0.4.1.0 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... Configuring exceptions-0.8.3... Installed tagged-0.8.5 Building exceptions-0.8.3... Configuring hashable-1.2.4.0... Installed exceptions-0.8.3 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 parsec-3.1.11... Installed blaze-builder-0.4.0.2 Building parsec-3.1.11... Building http-api-data-0.2.4... Configuring path-pieces-0.2.1... Installed http-api-data-0.2.4 Building path-pieces-0.2.1... Configuring polyparse-1.12... Installed parsec-3.1.11 Installed path-pieces-0.2.1 Configuring data-default-0.7.1.1... Building polyparse-1.12... Building data-default-0.7.1.1... Configuring crypto-cipher-types-0.0.9... Installed data-default-0.7.1.1 Building crypto-cipher-types-0.0.9... Configuring unix-time-0.3.7... Installed crypto-cipher-types-0.0.9 Building unix-time-0.3.7... Configuring crypto-api-0.13.2... Installed polyparse-1.12 Building crypto-api-0.13.2... Configuring monad-control-1.0.1.0... Installed unix-time-0.3.7 Building monad-control-1.0.1.0... Configuring crypto-random-0.0.9... Installed monad-control-1.0.1.0 Building crypto-random-0.0.9... Configuring th-reify-many-0.1.6... Installed crypto-api-0.13.2 Building th-reify-many-0.1.6... Configuring case-insensitive-1.2.0.7... Installed crypto-random-0.0.9 Building case-insensitive-1.2.0.7... Configuring th-lift-instances-0.1.10... Installed th-reify-many-0.1.6 Building th-lift-instances-0.1.10... Configuring mwc-random-0.13.4.0... Installed case-insensitive-1.2.0.7 Building mwc-random-0.13.4.0... Configuring unordered-containers-0.2.7.1... Installed th-lift-instances-0.1.10 Building unordered-containers-0.2.7.1... Configuring scientific-0.3.4.9... Installed mwc-random-0.13.4.0 Building scientific-0.3.4.9... Configuring psqueues-0.2.2.2... Installed unordered-containers-0.2.7.1 Building psqueues-0.2.2.2... Configuring void-0.7.1... Installed scientific-0.3.4.9 Building void-0.7.1... Configuring blaze-markup-0.7.1.0... Installed void-0.7.1 Building blaze-markup-0.7.1.0... Configuring cookie-0.4.2.1... Installed psqueues-0.2.2.2 Building cookie-0.4.2.1... Configuring streaming-commons-0.1.16... Installed blaze-markup-0.7.1.0 Building streaming-commons-0.1.16... Installed cookie-0.4.2.1 Configuring cpphs-1.20.2... Building cpphs-1.20.2... Configuring fast-logger-2.4.7... Installed streaming-commons-0.1.16 Building fast-logger-2.4.7... Configuring cipher-aes-0.2.11... Installed cpphs-1.20.2 Configuring lmonad-0.1.0.0... Installed fast-logger-2.4.7 Building cipher-aes-0.2.11... Building lmonad-0.1.0.0... Configuring lifted-base-0.2.3.8... Installed lmonad-0.1.0.0 Building lifted-base-0.2.3.8... Configuring resource-pool-0.2.3.2... Installed cipher-aes-0.2.11 Building resource-pool-0.2.3.2... Configuring skein-1.0.9.4... Installed lifted-base-0.2.3.8 Configuring http-types-0.9.1... Installed resource-pool-0.2.3.2 Building skein-1.0.9.4... Building http-types-0.9.1... Configuring th-orphans-0.13.3... Installed skein-1.0.9.4 Configuring vault-0.3.0.6... Installed http-types-0.9.1 Building th-orphans-0.13.3... Building vault-0.3.0.6... Configuring attoparsec-0.13.1.0... Installed vault-0.3.0.6 Building attoparsec-0.13.1.0... Configuring blaze-html-0.8.1.2... Installed th-orphans-0.13.3 Building blaze-html-0.8.1.2... Configuring http2-1.6.2... Installed attoparsec-0.13.1.0 Building http2-1.6.2... Installed http2-1.6.2 Configuring haskell-src-exts-1.18.2... Configuring cprng-aes-0.6.1... Installed blaze-html-0.8.1.2 Building haskell-src-exts-1.18.2... Building cprng-aes-0.6.1... Configuring resourcet-1.1.8.1... Installed cprng-aes-0.6.1 Building resourcet-1.1.8.1... Configuring wai-3.2.1.1... Installed resourcet-1.1.8.1 Building wai-3.2.1.1... Configuring aeson-0.11.2.1... Installed wai-3.2.1.1 Building aeson-0.11.2.1... Configuring http-date-0.0.6.1... Installed aeson-0.11.2.1 Building http-date-0.0.6.1... Installed http-date-0.0.6.1 Configuring clientsession-0.9.1.2... Building clientsession-0.9.1.2... Configuring wai-logger-2.3.0... Installed clientsession-0.9.1.2 Building wai-logger-2.3.0... Configuring aeson-compat-0.3.6... Installed wai-logger-2.3.0 Building aeson-compat-0.3.6... Configuring conduit-1.2.8... Installed aeson-compat-0.3.6 Building conduit-1.2.8... Configuring shakespeare-2.0.11.2... Installed conduit-1.2.8 Building shakespeare-2.0.11.2... Configuring warp-3.2.9... Installed shakespeare-2.0.11.2 Building warp-3.2.9... Configuring wai-extra-3.0.19... Installed haskell-src-exts-1.18.2 Building wai-extra-3.0.19... Configuring conduit-extra-1.1.15... Installed warp-3.2.9 Building conduit-extra-1.1.15... Configuring haskell-src-meta-0.7.0... Installed wai-extra-3.0.19 Building haskell-src-meta-0.7.0... Installed conduit-extra-1.1.15 Configuring monad-logger-0.3.20.1... Building monad-logger-0.3.20.1... Installed haskell-src-meta-0.7.0 Installed monad-logger-0.3.20.1 Configuring persistent-2.2.4.1... Configuring yesod-core-1.4.26... Building persistent-2.2.4.1... Building yesod-core-1.4.26... Installed persistent-2.2.4.1 Configuring persistent-template-2.1.8.1... Building persistent-template-2.1.8.1... Configuring esqueleto-2.4.3... Installed yesod-core-1.4.26 Building esqueleto-2.4.3... Installed persistent-template-2.1.8.1 Configuring yesod-persistent-1.4.0.6... Building yesod-persistent-1.4.0.6... Installed yesod-persistent-1.4.0.6 Installed esqueleto-2.4.3 Configuring lmonad-yesod-0.3.0.0... Building lmonad-yesod-0.3.0.0... Failed to install lmonad-yesod-0.3.0.0 Build log ( /home/builder/.cabal/logs/lmonad-yesod-0.3.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-20923/lmonad-yesod-0.3.0.0' Configuring lmonad-yesod-0.3.0.0... Building lmonad-yesod-0.3.0.0... Preprocessing library lmonad-yesod-0.3.0.0... src/Database/LPersist/TH.hs:11:14: warning: -XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS [1 of 8] Compiling LMonad.Yesod ( src/LMonad/Yesod.hs, dist/build/LMonad/Yesod.o ) src/LMonad/Yesod.hs:167:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: LMonad.Yesod.whamlet :: QuasiQuoter src/LMonad/Yesod.hs:167:11: warning: [-Wmissing-fields] • Fields of ‘QuasiQuoter’ not initialised: quotePat, quoteType, quoteDec • In the expression: QuasiQuoter {quoteExp = \ s -> quoteExp Yesod.whamlet s >>= return . (AppE (VarE 'lLift))} In an equation for ‘LMonad.Yesod.whamlet’: LMonad.Yesod.whamlet = QuasiQuoter {quoteExp = \ s -> quoteExp Yesod.whamlet s >>= return . (AppE (VarE 'lLift))} [2 of 8] Compiling Internal ( src/Internal.hs, dist/build/Internal.o ) [3 of 8] Compiling Database.LPersist.Quasi ( src/Database/LPersist/Quasi.hs, dist/build/Database/LPersist/Quasi.o ) [4 of 8] Compiling Database.LPersist.TH ( src/Database/LPersist/TH.hs, dist/build/Database/LPersist/TH.o ) [5 of 8] Compiling Database.LPersist.Labeler ( src/Database/LPersist/Labeler.hs, dist/build/Database/LPersist/Labeler.o ) src/Database/LPersist/Labeler.hs:73:5: error: • Couldn't match type ‘Cxt -> Dec’ with ‘Dec’ Expected type: Q Dec Actual type: Q (Cxt -> Dec) • In the expression: return $ DataD [] pName [] [RecC pName pFields] [] In the expression: let pFields = map mkProtectedField (lEntityFields ent) in return $ DataD [] pName [] [RecC pName pFields] [] In an equation for ‘mkProtectedEntity’: mkProtectedEntity labelType ent = let pFields = map mkProtectedField (lEntityFields ent) in return $ DataD [] pName [] [RecC pName pFields] [] where eName = lEntityHaskell ent pName = mkName $ "Protected" ++ eName mkProtectedField field = let ... in let ... in let ... in let ... in (fName, strict, typ) src/Database/LPersist/Labeler.hs:73:32: error: • Couldn't match expected type ‘Maybe Kind’ with actual type ‘[Con]’ • In the fourth argument of ‘DataD’, namely ‘[RecC pName pFields]’ In the second argument of ‘($)’, namely ‘DataD [] pName [] [RecC pName pFields] []’ In the expression: return $ DataD [] pName [] [RecC pName pFields] [] src/Database/LPersist/Labeler.hs:80:53: error: • Data constructor not in scope: IsStrict :: Bang • Perhaps you meant one of these: variable ‘isStrict’ (imported from Language.Haskell.TH), ‘Strict’ (imported from Language.Haskell.TH) src/Database/LPersist/Labeler.hs:80:67: error: • Data constructor not in scope: NotStrict :: Bang • Perhaps you meant variable ‘notStrict’ (imported from Language.Haskell.TH) src/Database/LPersist/Labeler.hs:118:5: error: • Couldn't match type ‘[Dec] -> Dec’ with ‘Dec’ Expected type: Q Dec Actual type: Q ([Dec] -> Dec) • In the expression: return $ InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs In the expression: let funcs = [...] in return $ InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs In the expression: let (rExpr, wExpr, cExpr) = case expr of { Nothing -> ... Just exprs -> ... } in let funcs = [...] in return $ InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs src/Database/LPersist/Labeler.hs:118:24: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[t1]’ • In the first argument of ‘InstanceD’, namely ‘[]’ In the second argument of ‘($)’, namely ‘InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs’ In the expression: return $ InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs src/Database/LPersist/Labeler.hs:118:28: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘(AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName)))’ In the second argument of ‘($)’, namely ‘InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs’ In the expression: return $ InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs src/Database/LPersist/Labeler.hs:118:99: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the third argument of ‘InstanceD’, namely ‘funcs’ In the second argument of ‘($)’, namely ‘InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs’ In the expression: return $ InstanceD [] (AppT (AppT (ConT (mkName "LEntity")) labelType) (ConT (mkName eName))) funcs src/Database/LPersist/Labeler.hs:307:5: 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 [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected] In the expression: do { (fStmts, fExps) <- foldM mkProtectedFieldInstance ([], []) $ lEntityFields ent; let recordCons = RecConE (mkName pName) fExps; let body = DoE $ fStmts ++ ...; let toProtected = FunD (mkName "toProtected") ...; .... } In an equation for ‘mkProtectedEntityInstance’: mkProtectedEntityInstance labelType ent = do { (fStmts, fExps) <- foldM mkProtectedFieldInstance ([], []) $ lEntityFields ent; let recordCons = ...; let body = ...; .... } where eName = lEntityHaskell ent pName = "Protected" ++ eName e = mkName "_e" eId = mkName "_eId" .... src/Database/LPersist/Labeler.hs:307:24: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[t0]’ • In the first argument of ‘InstanceD’, namely ‘[]’ In the second argument of ‘($)’, namely ‘InstanceD [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected]’ In a stmt of a 'do' block: return $ InstanceD [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected] src/Database/LPersist/Labeler.hs:307:28: error: • Couldn't match type ‘Type’ with ‘[Pred]’ Expected type: Cxt Actual type: Type • In the second argument of ‘InstanceD’, namely ‘(AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName)))’ In the second argument of ‘($)’, namely ‘InstanceD [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected]’ In a stmt of a 'do' block: return $ InstanceD [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected] src/Database/LPersist/Labeler.hs:307:136: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the third argument of ‘InstanceD’, namely ‘[toProtected]’ In the second argument of ‘($)’, namely ‘InstanceD [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected]’ In a stmt of a 'do' block: return $ InstanceD [] (AppT (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) (ConT (mkName pName))) [toProtected] cabal: Leaving directory '/tmp/cabal-tmp-20923/lmonad-yesod-0.3.0.0' cabal: Error: some packages failed to install: lmonad-yesod-0.3.0.0 failed during the building phase. The exception was: ExitFailure 1