Resolving dependencies... Configuring appar-0.1.4... Configuring ansi-terminal-0.6.2.3... Building appar-0.1.4... Building ansi-terminal-0.6.2.3... 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 memory-0.13... Installed fail-4.9.0.0 Building memory-0.13... Building entropy-0.3.7... Configuring monad-loops-0.4.3... Installed entropy-0.3.7 Building monad-loops-0.4.3... Configuring mtl-2.2.1... Installed monad-loops-0.4.3 Building mtl-2.2.1... Configuring nats-1.1.1... Installed memory-0.13 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 mtl-2.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 random-1.1... Installed primitive-0.6.1.0 Building random-1.1... Configuring safe-0.3.10... Installed network-2.6.3.1 Building safe-0.3.10... Configuring semigroups-0.18.2... Installed safe-0.3.10 Building semigroups-0.18.2... Configuring setenv-0.1.1.3... Installed random-1.1 Building setenv-0.1.1.3... Configuring silently-1.2.5... Installed semigroups-0.18.2 Configuring stm-2.4.4.1... Installed setenv-0.1.1.3 Building silently-1.2.5... 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 text-1.2.2.1... Installed stringsearch-0.3.6.6 Configuring th-lift-0.7.6... Installed syb-0.6 Building text-1.2.2.1... Building th-lift-0.7.6... Configuring time-locale-compat-0.1.1.3... Installed th-lift-0.7.6 Building time-locale-compat-0.1.1.3... Configuring transformers-compat-0.5.1.4... Installed time-locale-compat-0.1.1.3 Building transformers-compat-0.5.1.4... Configuring unix-compat-0.4.2.0... Installed transformers-compat-0.5.1.4 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... Building data-default-instances-containers-0.0.1... Configuring data-default-instances-dlist-0.0.1... Installed zlib-0.6.1.2 Configuring securemem-0.1.9... Installed data-default-instances-containers-0.0.1 Building data-default-instances-dlist-0.0.1... Building securemem-0.1.9... Configuring data-default-instances-old-locale-0.0.1... Installed data-default-instances-dlist-0.0.1 Building data-default-instances-old-locale-0.0.1... Installed securemem-0.1.9 Configuring old-time-1.1.0.3... Installed data-default-instances-old-locale-0.0.1 Configuring vector-0.11.0.0... Building vector-0.11.0.0... Building old-time-1.1.0.3... Configuring iproute-1.7.1... Installed old-time-1.1.0.3 Building iproute-1.7.1... Installed iproute-1.7.1 Configuring simple-sendfile-0.2.25... Building simple-sendfile-0.2.25... Configuring async-2.1.1... Installed simple-sendfile-0.2.25 Building async-2.1.1... 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 exceptions-0.8.3... Installed th-expand-syns-0.4.1.0 Building exceptions-0.8.3... Configuring mmorph-1.0.9... Installed vector-0.11.0.0 Building mmorph-1.0.9... Configuring tagged-0.8.5... Installed exceptions-0.8.3 Building tagged-0.8.5... Configuring transformers-base-0.4.4... Installed mmorph-1.0.9 Building transformers-base-0.4.4... Configuring blaze-builder-0.4.0.2... Installed transformers-base-0.4.4 Building blaze-builder-0.4.0.2... Configuring hashable-1.2.4.0... Installed tagged-0.8.5 Building hashable-1.2.4.0... Configuring http-api-data-0.2.4... Installed blaze-builder-0.4.0.2 Configuring parsec-3.1.11... Installed hashable-1.2.4.0 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 Building polyparse-1.12... Installed path-pieces-0.2.1 Configuring crypto-cipher-types-0.0.9... Building crypto-cipher-types-0.0.9... Installed crypto-cipher-types-0.0.9 Configuring data-default-0.7.1.1... Building data-default-0.7.1.1... Installed data-default-0.7.1.1 Configuring unix-time-0.3.7... Configuring th-reify-many-0.1.6... Installed polyparse-1.12 Building th-reify-many-0.1.6... Building unix-time-0.3.7... Configuring crypto-random-0.0.9... Installed th-reify-many-0.1.6 Building crypto-random-0.0.9... Configuring th-lift-instances-0.1.10... Installed unix-time-0.3.7 Building th-lift-instances-0.1.10... Configuring mwc-random-0.13.4.0... Installed crypto-random-0.0.9 Configuring monad-control-1.0.1.0... Installed th-lift-instances-0.1.10 Building mwc-random-0.13.4.0... Building monad-control-1.0.1.0... Installed monad-control-1.0.1.0 Configuring crypto-api-0.13.2... Building crypto-api-0.13.2... Configuring cookie-0.4.2.1... Installed mwc-random-0.13.4.0 Building cookie-0.4.2.1... Configuring blaze-markup-0.7.1.0... Installed cookie-0.4.2.1 Building blaze-markup-0.7.1.0... Configuring streaming-commons-0.1.16... Installed crypto-api-0.13.2 Building streaming-commons-0.1.16... Configuring case-insensitive-1.2.0.7... Installed blaze-markup-0.7.1.0 Building case-insensitive-1.2.0.7... Configuring psqueues-0.2.2.2... Installed case-insensitive-1.2.0.7 Building psqueues-0.2.2.2... Configuring scientific-0.3.4.9... Installed streaming-commons-0.1.16 Building scientific-0.3.4.9... Configuring unordered-containers-0.2.7.1... Installed psqueues-0.2.2.2 Building unordered-containers-0.2.7.1... Configuring void-0.7.1... Installed scientific-0.3.4.9 Building void-0.7.1... Installed void-0.7.1 Configuring cipher-aes-0.2.11... Building cipher-aes-0.2.11... Installed cipher-aes-0.2.11 Configuring cpphs-1.20.2... Building cpphs-1.20.2... Configuring th-orphans-0.13.3... Installed unordered-containers-0.2.7.1 Building th-orphans-0.13.3... Configuring lifted-base-0.2.3.8... Installed th-orphans-0.13.3 Building lifted-base-0.2.3.8... Configuring fast-logger-2.4.7... Installed cpphs-1.20.2 Building fast-logger-2.4.7... Configuring lmonad-0.1.0.0... Installed lifted-base-0.2.3.8 Building lmonad-0.1.0.0... Configuring resource-pool-0.2.3.2... Installed fast-logger-2.4.7 Building resource-pool-0.2.3.2... Installed lmonad-0.1.0.0 Configuring skein-1.0.9.4... Building skein-1.0.9.4... Configuring http-types-0.9.1... Installed resource-pool-0.2.3.2 Building http-types-0.9.1... Configuring blaze-html-0.8.1.2... Installed skein-1.0.9.4 Configuring http2-1.6.2... Installed http-types-0.9.1 Building blaze-html-0.8.1.2... Building http2-1.6.2... Configuring attoparsec-0.13.1.0... Installed http2-1.6.2 Building attoparsec-0.13.1.0... Installed blaze-html-0.8.1.2 Configuring cprng-aes-0.6.1... Building cprng-aes-0.6.1... Configuring vault-0.3.0.6... Installed cprng-aes-0.6.1 Building vault-0.3.0.6... Configuring haskell-src-exts-1.18.2... Installed attoparsec-0.13.1.0 Building haskell-src-exts-1.18.2... Configuring resourcet-1.1.8.1... Installed vault-0.3.0.6 Building resourcet-1.1.8.1... Installed resourcet-1.1.8.1 Configuring clientsession-0.9.1.2... Building clientsession-0.9.1.2... Installed clientsession-0.9.1.2 Configuring http-date-0.0.6.1... Building http-date-0.0.6.1... Configuring wai-3.2.1.1... Installed http-date-0.0.6.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 conduit-1.2.8... Installed aeson-0.11.2.1 Building conduit-1.2.8... Installed conduit-1.2.8 Configuring wai-logger-2.3.0... Building wai-logger-2.3.0... Installed wai-logger-2.3.0 Configuring aeson-compat-0.3.6... Building aeson-compat-0.3.6... Configuring warp-3.2.9... Installed aeson-compat-0.3.6 Building warp-3.2.9... Configuring shakespeare-2.0.11.2... Installed warp-3.2.9 Building shakespeare-2.0.11.2... Configuring conduit-extra-1.1.15... Installed haskell-src-exts-1.18.2 Building conduit-extra-1.1.15... Configuring wai-extra-3.0.19... Installed shakespeare-2.0.11.2 Building wai-extra-3.0.19... Configuring haskell-src-meta-0.7.0... Installed conduit-extra-1.1.15 Building haskell-src-meta-0.7.0... Configuring monad-logger-0.3.20.1... Installed wai-extra-3.0.19 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-1.0.0.0... Building lmonad-yesod-1.0.0.0... Failed to install lmonad-yesod-1.0.0.0 Build log ( /home/builder/.cabal/logs/lmonad-yesod-1.0.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-26750/lmonad-yesod-1.0.0.0' Configuring lmonad-yesod-1.0.0.0... Building lmonad-yesod-1.0.0.0... Preprocessing library lmonad-yesod-1.0.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:26: error: • Couldn't match expected type ‘Maybe Overlap’ with actual type ‘[t0]’ • In the first argument of ‘InstanceD’, namely ‘[]’ In the expression: InstanceD [] (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) [toProtected] In an equation for ‘inst’: inst = InstanceD [] (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) [toProtected] src/Database/LPersist/Labeler.hs:307:30: 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 "ProtectedEntity")) labelType) (ConT (mkName eName)))’ In the expression: InstanceD [] (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) [toProtected] In an equation for ‘inst’: inst = InstanceD [] (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) [toProtected] src/Database/LPersist/Labeler.hs:307:109: error: • Couldn't match expected type ‘Type’ with actual type ‘[Dec]’ • In the third argument of ‘InstanceD’, namely ‘[toProtected]’ In the expression: InstanceD [] (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) [toProtected] In an equation for ‘inst’: inst = InstanceD [] (AppT (AppT (ConT (mkName "ProtectedEntity")) labelType) (ConT (mkName eName))) [toProtected] src/Database/LPersist/Labeler.hs:309: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 [inst, typInst] 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:309:19: error: • Couldn't match expected type ‘[Dec] -> Dec’ with actual type ‘Dec’ • In the expression: typInst In the first argument of ‘return’, namely ‘[inst, typInst]’ In a stmt of a 'do' block: return [inst, typInst] cabal: Leaving directory '/tmp/cabal-tmp-26750/lmonad-yesod-1.0.0.0' cabal: Error: some packages failed to install: lmonad-yesod-1.0.0.0 failed during the building phase. The exception was: ExitFailure 1