Resolving dependencies... Configuring ansi-terminal-0.6.2.3... Configuring appar-0.1.4... 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 byteable-0.1.1... Installed base-compat-0.9.1 Configuring byteorder-1.0.4... Installed base64-bytestring-1.0.0.1 Building byteable-0.1.1... Building byteorder-1.0.4... Configuring bytestring-builder-0.10.8.1.0... Installed byteable-0.1.1 Configuring cereal-0.5.4.0... Installed byteorder-1.0.4 Building bytestring-builder-0.10.8.1.0... Building cereal-0.5.4.0... Configuring dlist-0.8.0.2... Installed bytestring-builder-0.10.8.1.0 Building dlist-0.8.0.2... Configuring deepseq-generics-0.2.0.0... Installed dlist-0.8.0.2 Building deepseq-generics-0.2.0.0... Configuring entropy-0.3.7... Installed deepseq-generics-0.2.0.0 Configuring easy-file-0.2.1... Installed cereal-0.5.4.0 Building easy-file-0.2.1... Configuring data-default-class-0.1.2.0... Installed easy-file-0.2.1 Building entropy-0.3.7... Building data-default-class-0.1.2.0... Configuring fail-4.9.0.0... Installed data-default-class-0.1.2.0 Configuring monad-loops-0.4.3... Installed entropy-0.3.7 Building fail-4.9.0.0... Building monad-loops-0.4.3... Configuring mtl-2.2.1... Installed fail-4.9.0.0 Building mtl-2.2.1... Configuring memory-0.13... Installed monad-loops-0.4.3 Building memory-0.13... Configuring nats-1.1.1... Installed mtl-2.2.1 Building nats-1.1.1... Configuring old-locale-1.0.0.7... Installed nats-1.1.1 Building old-locale-1.0.0.7... Configuring network-2.6.3.1... Installed old-locale-1.0.0.7 Configuring random-1.1... Installed memory-0.13 Building random-1.1... Building network-2.6.3.1... Configuring primitive-0.6.1.0... Installed random-1.1 Building primitive-0.6.1.0... Configuring safe-0.3.10... Installed primitive-0.6.1.0 Configuring semigroups-0.18.2... Installed network-2.6.3.1 Building safe-0.3.10... Building semigroups-0.18.2... Configuring setenv-0.1.1.3... Installed semigroups-0.18.2 Configuring silently-1.2.5... Installed safe-0.3.10 Building setenv-0.1.1.3... 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 text-1.2.2.1... Installed stringsearch-0.3.6.6 Building text-1.2.2.1... Configuring th-lift-0.7.6... Installed syb-0.6 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... Installed data-default-instances-containers-0.0.1 Configuring old-time-1.1.0.3... Configuring data-default-instances-dlist-0.0.1... Installed zlib-0.6.1.2 Building data-default-instances-dlist-0.0.1... Building old-time-1.1.0.3... Configuring securemem-0.1.9... Installed data-default-instances-dlist-0.0.1 Building securemem-0.1.9... Configuring data-default-instances-old-locale-0.0.1... Installed securemem-0.1.9 Configuring iproute-1.7.1... Installed old-time-1.1.0.3 Building data-default-instances-old-locale-0.0.1... Building iproute-1.7.1... Configuring vector-0.11.0.0... Installed data-default-instances-old-locale-0.0.1 Building vector-0.11.0.0... Configuring simple-sendfile-0.2.25... Installed iproute-1.7.1 Building simple-sendfile-0.2.25... Configuring stm-chans-3.0.0.4... Installed simple-sendfile-0.2.25 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 async-2.1.1... Installed th-expand-syns-0.4.1.0 Building async-2.1.1... Configuring mmorph-1.0.9... Installed async-2.1.1 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 vector-0.11.0.0 Building exceptions-0.8.3... Configuring blaze-builder-0.4.0.2... Installed tagged-0.8.5 Building blaze-builder-0.4.0.2... Configuring hashable-1.2.4.0... Installed exceptions-0.8.3 Building hashable-1.2.4.0... Configuring http-api-data-0.2.4... Installed blaze-builder-0.4.0.2 Configuring path-pieces-0.2.1... Installed hashable-1.2.4.0 Building path-pieces-0.2.1... Building http-api-data-0.2.4... Configuring polyparse-1.12... Installed path-pieces-0.2.1 Building polyparse-1.12... Configuring parsec-3.1.11... Installed http-api-data-0.2.4 Building parsec-3.1.11... Installed polyparse-1.12 Configuring crypto-cipher-types-0.0.9... Building crypto-cipher-types-0.0.9... Installed parsec-3.1.11 Configuring unix-time-0.3.7... Configuring data-default-0.7.1.1... Installed crypto-cipher-types-0.0.9 Building unix-time-0.3.7... Building data-default-0.7.1.1... Configuring th-reify-many-0.1.6... Installed data-default-0.7.1.1 Building th-reify-many-0.1.6... Configuring crypto-random-0.0.9... Installed unix-time-0.3.7 Building crypto-random-0.0.9... Configuring monad-control-1.0.1.0... Installed th-reify-many-0.1.6 Building monad-control-1.0.1.0... Configuring mwc-random-0.13.4.0... Installed crypto-random-0.0.9 Building mwc-random-0.13.4.0... Configuring blaze-markup-0.7.1.1... Installed monad-control-1.0.1.0 Building blaze-markup-0.7.1.1... Configuring cookie-0.4.2.1... Installed blaze-markup-0.7.1.1 Building cookie-0.4.2.1... Configuring crypto-api-0.13.2... Installed mwc-random-0.13.4.0 Building crypto-api-0.13.2... Configuring th-lift-instances-0.1.10... Installed cookie-0.4.2.1 Building th-lift-instances-0.1.10... Configuring case-insensitive-1.2.0.7... Installed th-lift-instances-0.1.10 Building case-insensitive-1.2.0.7... Configuring streaming-commons-0.1.16... Installed crypto-api-0.13.2 Building streaming-commons-0.1.16... Configuring psqueues-0.2.2.3... Installed case-insensitive-1.2.0.7 Building psqueues-0.2.2.3... Configuring void-0.7.1... Installed psqueues-0.2.2.3 Building void-0.7.1... Configuring unordered-containers-0.2.7.1... Installed streaming-commons-0.1.16 Building unordered-containers-0.2.7.1... Configuring scientific-0.3.4.9... Installed void-0.7.1 Building scientific-0.3.4.9... Configuring cpphs-1.20.2... Installed scientific-0.3.4.9 Building cpphs-1.20.2... Installed unordered-containers-0.2.7.1 Configuring cipher-aes-0.2.11... Building cipher-aes-0.2.11... Configuring fast-logger-2.4.7... Installed cipher-aes-0.2.11 Configuring lifted-base-0.2.3.8... Installed cpphs-1.20.2 Building fast-logger-2.4.7... Building lifted-base-0.2.3.8... Configuring resource-pool-0.2.3.2... Installed fast-logger-2.4.7 Configuring lmonad-0.1.0.0... Installed lifted-base-0.2.3.8 Building resource-pool-0.2.3.2... Building lmonad-0.1.0.0... Configuring blaze-html-0.8.1.3... Installed resource-pool-0.2.3.2 Building blaze-html-0.8.1.3... Configuring th-orphans-0.13.3... Installed lmonad-0.1.0.0 Building th-orphans-0.13.3... Configuring http-types-0.9.1... Installed th-orphans-0.13.3 Building http-types-0.9.1... Configuring skein-1.0.9.4... Installed http-types-0.9.1 Building skein-1.0.9.4... Configuring http2-1.6.2... Installed blaze-html-0.8.1.3 Building http2-1.6.2... Configuring attoparsec-0.13.1.0... Installed skein-1.0.9.4 Building attoparsec-0.13.1.0... Configuring vault-0.3.0.6... Installed attoparsec-0.13.1.0 Building vault-0.3.0.6... Installed http2-1.6.2 Configuring cprng-aes-0.6.1... Configuring haskell-src-exts-1.18.2... Installed vault-0.3.0.6 Building cprng-aes-0.6.1... Building haskell-src-exts-1.18.2... Configuring resourcet-1.1.8.1... Installed cprng-aes-0.6.1 Building resourcet-1.1.8.1... Configuring aeson-0.11.2.1... Installed resourcet-1.1.8.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 wai-3.2.1.1... Building wai-3.2.1.1... Configuring conduit-1.2.8... Installed wai-3.2.1.1 Building conduit-1.2.8... Configuring clientsession-0.9.1.2... Installed conduit-1.2.8 Building clientsession-0.9.1.2... Configuring aeson-compat-0.3.6... Installed clientsession-0.9.1.2 Building aeson-compat-0.3.6... Configuring shakespeare-2.0.11.2... Installed aeson-compat-0.3.6 Building shakespeare-2.0.11.2... Installed shakespeare-2.0.11.2 Configuring wai-logger-2.3.0... Building wai-logger-2.3.0... Configuring conduit-extra-1.1.15... Installed wai-logger-2.3.0 Building conduit-extra-1.1.15... Configuring warp-3.2.9... Installed conduit-extra-1.1.15 Building warp-3.2.9... Installed haskell-src-exts-1.18.2 Configuring wai-extra-3.0.19... Building wai-extra-3.0.19... Configuring monad-logger-0.3.20.1... Installed wai-extra-3.0.19 Configuring haskell-src-meta-0.7.0... Installed warp-3.2.9 Building monad-logger-0.3.20.1... Building 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... Installed haskell-src-meta-0.7.0 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.1.0.0... Building lmonad-yesod-0.1.0.0... Failed to install lmonad-yesod-0.1.0.0 Build log ( /home/builder/.cabal/logs/lmonad-yesod-0.1.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-15326/lmonad-yesod-0.1.0.0' Configuring lmonad-yesod-0.1.0.0... Building lmonad-yesod-0.1.0.0... Preprocessing library lmonad-yesod-0.1.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))} src/LMonad/Yesod.hs:186:1: warning: [-Worphans] Orphan instance: instance (MonadResource m, Label l, LMonad m) => MonadResource (LMonadT l m) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/LMonad/Yesod.hs:189:1: warning: [-Worphans] Orphan instance: instance (MonadHandler m, Label l, LMonad m) => MonadHandler (LMonadT l m) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. src/LMonad/Yesod.hs:193:1: warning: [-Worphans] Orphan instance: instance (MonadWidget m, Label l, LMonad m) => MonadWidget (LMonadT l m) To avoid this move the instance declaration to the module of the class or of the type, or wrap the type with a newtype and declare the instance on the new type. [2 of 8] Compiling Internal ( src/Internal.hs, dist/build/Internal.o ) src/Internal.hs:129:32: warning: [-Wunused-matches] Defined but not used: ‘t’ [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-15326/lmonad-yesod-0.1.0.0' cabal: Error: some packages failed to install: lmonad-yesod-0.1.0.0 failed during the building phase. The exception was: ExitFailure 1