Resolving dependencies... Configuring cmdargs-0.10.14... Configuring dataenc-0.12... Building dataenc-0.12... Building cmdargs-0.10.14... Installed dataenc-0.12 Configuring extensible-exceptions-0.1.1.4... Building extensible-exceptions-0.1.1.4... Configuring mmap-0.5.9... Installed extensible-exceptions-0.1.1.4 Building mmap-0.5.9... Configuring old-locale-1.0.0.7... Installed mmap-0.5.9 Building old-locale-1.0.0.7... Configuring mtl-2.2.1... Installed old-locale-1.0.0.7 Building mtl-2.2.1... Configuring strict-0.3.2... Installed mtl-2.2.1 Building strict-0.3.2... Configuring zlib-0.6.1.2... Installed strict-0.3.2 Building zlib-0.6.1.2... Installed cmdargs-0.10.14 Installed zlib-0.6.1.2 Configuring hashed-storage-0.5.11... Building hashed-storage-0.5.11... Failed to install hashed-storage-0.5.11 Build log ( /home/builder/.cabal/logs/hashed-storage-0.5.11.log ): cabal: Entering directory '/tmp/cabal-tmp-24427/hashed-storage-0.5.11' [1 of 1] Compiling Main ( /tmp/cabal-tmp-24427/hashed-storage-0.5.11/dist/setup/setup.hs, /tmp/cabal-tmp-24427/hashed-storage-0.5.11/dist/setup/Main.o ) Linking /tmp/cabal-tmp-24427/hashed-storage-0.5.11/dist/setup/setup ... Configuring hashed-storage-0.5.11... Warning: 'ghc-options: -prof' is not necessary and will lead to problems when used on a library. Use the configure flag --enable-library-profiling and/or --enable-profiling. Building hashed-storage-0.5.11... Preprocessing library hashed-storage-0.5.11... on the commandline: warning: -XPatternSignatures is deprecated: use -XScopedTypeVariables or pragma {-# LANGUAGE ScopedTypeVariables #-} instead [ 1 of 12] Compiling Storage.Hashed.AnchoredPath ( Storage/Hashed/AnchoredPath.hs, dist/build/Storage/Hashed/AnchoredPath.o ) [ 2 of 12] Compiling Bundled.SHA256 ( Bundled/SHA256.hs, dist/build/Bundled/SHA256.o ) [ 3 of 12] Compiling Storage.Hashed.Hash ( Storage/Hashed/Hash.hs, dist/build/Storage/Hashed/Hash.o ) [ 4 of 12] Compiling Storage.Hashed.Tree ( Storage/Hashed/Tree.hs, dist/build/Storage/Hashed/Tree.o ) Storage/Hashed/Tree.hs:32:1: warning: [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’ Storage/Hashed/Tree.hs:43:1: warning: [-Wunused-imports] The import of ‘liftM’ from module ‘Control.Monad’ is redundant Storage/Hashed/Tree.hs:202:27: warning: [-Wname-shadowing] This binding for ‘sub’ shadows the existing binding bound at Storage/Hashed/Tree.hs:197:28 Storage/Hashed/Tree.hs:207:39: warning: [-Wunused-matches] Defined but not used: ‘s’ Storage/Hashed/Tree.hs:210:13: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘render’: Patterns not matched: (_, SubTree _) (_, Stub _ _) Storage/Hashed/Tree.hs:237:23: warning: [-Wunused-local-binds] Defined but not used: ‘subs’ Storage/Hashed/Tree.hs:362:50: warning: [-Wtype-defaults] • Defaulting the following constraint to type ‘Integer’ Num t0 arising from a use of ‘countmap’ • In the first argument of ‘seq’, namely ‘countmap items'’ In the ‘items’ field of a record In the expression: t {items = countmap items' `seq` items', treeHash = if unmod then treeHash t else NoHash} Storage/Hashed/Tree.hs:383:46: warning: [-Wname-shadowing] This binding for ‘mod’ shadows the existing binding imported from ‘Prelude’ at Storage/Hashed/Tree.hs:32:1-51 (and originally defined in ‘GHC.Real’) Storage/Hashed/Tree.hs:383:51: warning: [-Wname-shadowing] This binding for ‘sub’ shadows the existing binding bound at Storage/Hashed/Tree.hs:380:20 Storage/Hashed/Tree.hs:396:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: countmap :: Num a1 => M.Map k a -> a1 Storage/Hashed/Tree.hs:413:25: warning: [-Wname-shadowing] This binding for ‘pred’ shadows the existing binding imported from ‘Prelude’ at Storage/Hashed/Tree.hs:32:1-51 (and originally defined in ‘GHC.Enum’) Storage/Hashed/Tree.hs:416:19: warning: [-Wname-shadowing] This binding for ‘t'’ shadows the existing binding bound at Storage/Hashed/Tree.hs:413:30 Storage/Hashed/Tree.hs:458:1: warning: [-Wincomplete-patterns] Pattern match(es) are non-exhaustive In an equation for ‘unstub’: Patterns not matched: (File _) [ 5 of 12] Compiling Storage.Hashed.Monad ( Storage/Hashed/Monad.hs, dist/build/Storage/Hashed/Monad.o ) Storage/Hashed/Monad.hs:142:1: error: • Non type-variable argument in the constraint: MonadState (TreeState m) m1 (Use FlexibleContexts to permit this) • When checking the inferred type renameChanged :: forall (m :: * -> *) (m1 :: * -> *). MonadState (TreeState m) m1 => AnchoredPath -> AnchoredPath -> m1 () Storage/Hashed/Monad.hs:196:16: error: • Non type-variable argument in the constraint: MonadState (TreeState m0) (t m0) (Use FlexibleContexts to permit this) • When checking the inferred type amend :: forall (t :: (* -> *) -> * -> *). (MonadState (TreeState m0) (t m0), MonadTrans t) => t m0 () In the expression: do { t <- gets tree; p' <- (`catPaths` p) `fmap` ask; let amend = ...; case find t p' of { Nothing -> amend Just (Stub _ _) -> amend _ -> return () }; .... } In an equation for ‘expandTo’: expandTo p = do { t <- gets tree; p' <- (`catPaths` p) `fmap` ask; let amend = ...; .... } cabal: Leaving directory '/tmp/cabal-tmp-24427/hashed-storage-0.5.11' cabal: Error: some packages failed to install: hashed-storage-0.5.11 failed during the building phase. The exception was: ExitFailure 1 hsbackup-0.1.1 depends on hashed-storage-0.5.11 which failed to install.