Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Preprocessing library mtl-2.2.1... [ 1 of 22] Compiling Control.Monad.Writer.Class ( Control/Monad/Writer/Class.hs, dist/build/Control/Monad/Writer/Class.o ) [ 2 of 22] Compiling Control.Monad.State.Class ( Control/Monad/State/Class.hs, dist/build/Control/Monad/State/Class.o ) [ 3 of 22] Compiling Control.Monad.Reader.Class ( Control/Monad/Reader/Class.hs, dist/build/Control/Monad/Reader/Class.o ) [ 4 of 22] Compiling Control.Monad.RWS.Class ( Control/Monad/RWS/Class.hs, dist/build/Control/Monad/RWS/Class.o ) [ 5 of 22] Compiling Control.Monad.Identity ( Control/Monad/Identity.hs, dist/build/Control/Monad/Identity.o ) [ 6 of 22] Compiling Control.Monad.Error.Class ( Control/Monad/Error/Class.hs, dist/build/Control/Monad/Error/Class.o ) [ 7 of 22] Compiling Control.Monad.Cont.Class ( Control/Monad/Cont/Class.hs, dist/build/Control/Monad/Cont/Class.o ) [ 8 of 22] Compiling Control.Monad.Trans ( Control/Monad/Trans.hs, dist/build/Control/Monad/Trans.o ) [ 9 of 22] Compiling Control.Monad.Error ( Control/Monad/Error.hs, dist/build/Control/Monad/Error.o ) [10 of 22] Compiling Control.Monad.Except ( Control/Monad/Except.hs, dist/build/Control/Monad/Except.o ) [11 of 22] Compiling Control.Monad.List ( Control/Monad/List.hs, dist/build/Control/Monad/List.o ) [12 of 22] Compiling Control.Monad.RWS.Lazy ( Control/Monad/RWS/Lazy.hs, dist/build/Control/Monad/RWS/Lazy.o ) [13 of 22] Compiling Control.Monad.RWS ( Control/Monad/RWS.hs, dist/build/Control/Monad/RWS.o ) [14 of 22] Compiling Control.Monad.Reader ( Control/Monad/Reader.hs, dist/build/Control/Monad/Reader.o ) [15 of 22] Compiling Control.Monad.RWS.Strict ( Control/Monad/RWS/Strict.hs, dist/build/Control/Monad/RWS/Strict.o ) [16 of 22] Compiling Control.Monad.State.Lazy ( Control/Monad/State/Lazy.hs, dist/build/Control/Monad/State/Lazy.o ) [17 of 22] Compiling Control.Monad.State ( Control/Monad/State.hs, dist/build/Control/Monad/State.o ) [18 of 22] Compiling Control.Monad.State.Strict ( Control/Monad/State/Strict.hs, dist/build/Control/Monad/State/Strict.o ) [19 of 22] Compiling Control.Monad.Writer.Lazy ( Control/Monad/Writer/Lazy.hs, dist/build/Control/Monad/Writer/Lazy.o ) [20 of 22] Compiling Control.Monad.Writer ( Control/Monad/Writer.hs, dist/build/Control/Monad/Writer.o ) [21 of 22] Compiling Control.Monad.Writer.Strict ( Control/Monad/Writer/Strict.hs, dist/build/Control/Monad/Writer/Strict.o ) [22 of 22] Compiling Control.Monad.Cont ( Control/Monad/Cont.hs, dist/build/Control/Monad/Cont.o ) In-place registering mtl-2.2.1... Running Haddock for mtl-2.2.1... cabal: Haddock's internal GHC version must match the configured GHC version. The GHC version is 7.10.2 but haddock is using GHC version 7.8.3 Creating package registration file: /tmp/pkgConf-mtl-2.2336465782861021530.1 Installing library in /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/mtl-2.2.1-KMpng31YRYc5JfMWFZ3FCU Registering mtl-2.2.1... Installed mtl-2.2.1 Configuring snappy-0.2.0.2... Building snappy-0.2.0.2... Preprocessing library snappy-0.2.0.2... [1 of 3] Compiling Codec.Compression.Snappy.Internal ( Codec/Compression/Snappy/Internal.hs, dist/build/Codec/Compression/Snappy/Internal.o ) [2 of 3] Compiling Codec.Compression.Snappy.Lazy ( dist/build/Codec/Compression/Snappy/Lazy.hs, dist/build/Codec/Compression/Snappy/Lazy.o ) Codec/Compression/Snappy/Lazy.hsc:52:10: Warning: No explicit implementation for either ‘peek’ or ‘peekElemOff’ or ‘peekByteOff’ In the instance declaration for ‘Storable BS’ [3 of 3] Compiling Codec.Compression.Snappy ( Codec/Compression/Snappy.hs, dist/build/Codec/Compression/Snappy.o ) In-place registering snappy-0.2.0.2... Running Haddock for snappy-0.2.0.2... cabal: Haddock's internal GHC version must match the configured GHC version. The GHC version is 7.10.2 but haddock is using GHC version 7.8.3 Creating package registration file: /tmp/pkgConf-snappy-0.2.01600515282040332871.2 Installing library in /home/builder/hackage-server/build-cache/tmp-install/lib/x86_64-linux-ghc-7.10.2/snappy-0.2.0.2-JfvOptW58EIJzkpvjrJhba Registering snappy-0.2.0.2... Installed snappy-0.2.0.2 Configuring qudb-0.0.1... Building qudb-0.0.1... Preprocessing executable 'qudb' for qudb-0.0.1... [1 of 8] Compiling Database.QUDB.Utils ( Database/QUDB/Utils.hs, dist/build/qudb/qudb-tmp/Database/QUDB/Utils.o ) [2 of 8] Compiling Database.QUDB.Scanner ( dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs, dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.o ) dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:435:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:436:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:437:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:441:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:442:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:446:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:448:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:452:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:454:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:458:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:467:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:481:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:483:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:484:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:485:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:487:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:488:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:489:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:490:5: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:492:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:495:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:496:1: Warning: Tab character dist/build/qudb/qudb-tmp/Database/QUDB/Scanner.hs:497:1: Warning: Tab character [3 of 8] Compiling Database.QUDB.EntityTypes ( Database/QUDB/EntityTypes.hs, dist/build/qudb/qudb-tmp/Database/QUDB/EntityTypes.o ) [4 of 8] Compiling Database.QUDB.Query ( Database/QUDB/Query.hs, dist/build/qudb/qudb-tmp/Database/QUDB/Query.o ) [5 of 8] Compiling Database.QUDB.Parser ( dist/build/qudb/qudb-tmp/Database/QUDB/Parser.hs, dist/build/qudb/qudb-tmp/Database/QUDB/Parser.o ) [6 of 8] Compiling Database.QUDB.Structure ( Database/QUDB/Structure.hs, dist/build/qudb/qudb-tmp/Database/QUDB/Structure.o ) Database/QUDB/Structure.hs:48:9: Non type-variable argument in the constraint: Control.Monad.Error.Class.MonadError Error m (Use FlexibleContexts to permit this) When checking that ‘createTable’ has the inferred type createTable :: forall t (m :: * -> *). Control.Monad.Error.Class.MonadError Error m => [Char] -> [t] -> m DB In an equation for ‘query’: query db@(DB meta tables) (CreateTable name rows : _) = createTable name rows >>= \ x -> return (x, []) where createTable _ [] = E.throwError TableMustHaveColumns createTable "" _ = E.throwError NoTableNameGiven createTable _ _ = case findTable db name of { Right _ -> E.throwError $ TableExists name Left _ -> return (DB meta newTables) } newTables = addedTable : tables addedTable = Table name (map (uncurry Column) rows) [] Database/QUDB/Structure.hs:154:9: Non type-variable argument in the constraint: Control.Monad.Error.Class.MonadError Error m (Use FlexibleContexts to permit this) When checking that ‘getColId’ has the inferred type getColId :: forall (m :: * -> *). Control.Monad.Error.Class.MonadError Error m => String -> m Int In an equation for ‘constrainStep’: constrainStep ((Table name cols qRows), (Table _ _ notQRows)) (Where conds) = do { (acc, rej) <- foldrM rowWalker ([], notQRows) qRows; return (Table name cols acc, Table name cols rej) } where rowWalker :: Row -> ([Row], [Row]) -> DBMonad ([Row], [Row]) rowWalker (row@(Row values)) (accepted, rejected) = do { matches <- whereWalker conds values; .... } whereWalker :: WhereConditions -> [Value] -> DBMonad Bool whereWalker (OrConditions conditions) values = fmap or (mapM (`whereWalker` values) conditions) whereWalker (AndConditions conditions) values = fmap and (mapM (`whereWalker` values) conditions) whereWalker (Condition colName comparer) values = do { cell <- getCell colName values; .... } .... Database/QUDB/Structure.hs:227:21: Non type-variable argument in the constraint: Control.Monad.Error.Class.MonadError Error m (Use FlexibleContexts to permit this) When checking that ‘buildNewRow’ has the inferred type buildNewRow :: forall (m :: * -> *). Control.Monad.Error.Class.MonadError Error m => [Type] -> [Value] -> m [Value] In an equation for ‘addRow’: addRow (Table _ columns rows) = do { new <- newRow; return $ Table name columns (rows ++ [new]) } where newRow = fmap (Row) $ buildNewRow (types columns) values types = map (\ (Column _ t) -> t) buildNewRow [] [] = return [] buildNewRow (String : restTs) (val@(StringValue _) : restVs) = do { rest <- buildNewRow restTs restVs; .... } buildNewRow (Int : restTs) (val@(IntValue _) : restVs) = do { rest <- buildNewRow restTs restVs; .... } buildNewRow _ _ = E.throwError TypeMismatch In an equation for ‘insertRow’: insertRow db name values = modifyTable db name addRow where addRow :: Table -> DBMonad Table addRow (Table _ columns rows) = do { new <- newRow; .... } where newRow = fmap (Row) $ buildNewRow (types columns) values types = map (\ (Column _ t) -> ...) .... Failed to install qudb-0.0.1 cabal: Error: some packages failed to install: qudb-0.0.1 failed during the building phase. The exception was: ExitFailure 1