Resolving dependencies... Configuring auto-update-0.1.4... Configuring base-orphans-0.6... Building auto-update-0.1.4... Building base-orphans-0.6... Installed auto-update-0.1.4 Configuring cabal-doctest-1... Configuring clock-0.7.2... Installed base-orphans-0.6 Building cabal-doctest-1... Building clock-0.7.2... Configuring easy-file-0.2.1... Installed cabal-doctest-1 Configuring monad-loops-0.4.3... Installed clock-0.7.2 Building easy-file-0.2.1... Building monad-loops-0.4.3... Configuring mtl-2.2.1... Installed monad-loops-0.4.3 Configuring integer-logarithms-1.0.1... Installed easy-file-0.2.1 Building mtl-2.2.1... Building integer-logarithms-1.0.1... Configuring old-locale-1.0.0.7... Installed integer-logarithms-1.0.1 Building old-locale-1.0.0.7... Configuring network-2.6.3.1... Installed mtl-2.2.1 Configuring parallel-3.2.1.1... Installed old-locale-1.0.0.7 Building parallel-3.2.1.1... Building network-2.6.3.1... Configuring prelude-extras-0.4.0.3... Installed parallel-3.2.1.1 Building prelude-extras-0.4.0.3... Configuring random-1.1... Installed prelude-extras-0.4.0.3 Building random-1.1... Configuring reflection-2.1.2... Installed network-2.6.3.1 Configuring semigroups-0.18.2... Installed random-1.1 Building reflection-2.1.2... Building semigroups-0.18.2... Configuring primitive-0.6.2.0... Installed semigroups-0.18.2 Building primitive-0.6.2.0... Configuring stm-2.4.4.1... Installed reflection-2.1.2 Building stm-2.4.4.1... Configuring transformers-compat-0.5.1.4... Installed stm-2.4.4.1 Building transformers-compat-0.5.1.4... Configuring void-0.7.2... Installed primitive-0.6.2.0 Building void-0.7.2... Configuring text-1.2.2.1... Installed transformers-compat-0.5.1.4 Configuring zlib-0.6.1.2... Installed void-0.7.2 Building text-1.2.2.1... Building zlib-0.6.1.2... Installed zlib-0.6.1.2 Configuring StateVar-1.1.0.4... Building StateVar-1.1.0.4... Configuring old-time-1.1.0.3... Installed StateVar-1.1.0.4 Building old-time-1.1.0.3... Configuring stm-chans-3.0.0.4... Installed old-time-1.1.0.3 Building stm-chans-3.0.0.4... Configuring async-2.1.1.1... Installed text-1.2.2.1 Building async-2.1.1.1... Configuring mmorph-1.0.9... Installed stm-chans-3.0.0.4 Building mmorph-1.0.9... Configuring exceptions-0.8.3... Installed async-2.1.1.1 Building exceptions-0.8.3... Configuring vector-0.12.0.1... Installed mmorph-1.0.9 Building vector-0.12.0.1... Configuring transformers-base-0.4.4... Installed exceptions-0.8.3 Building transformers-base-0.4.4... Configuring tagged-0.8.5... Installed transformers-base-0.4.4 Building tagged-0.8.5... Installed tagged-0.8.5 Configuring contravariant-1.4... Building contravariant-1.4... Configuring unix-time-0.3.7... Installed contravariant-1.4 Building unix-time-0.3.7... Configuring blaze-builder-0.4.0.2... Installed unix-time-0.3.7 Building blaze-builder-0.4.0.2... Configuring double-conversion-2.0.2.0... Installed blaze-builder-0.4.0.2 Building double-conversion-2.0.2.0... Configuring hashable-1.2.6.0... Installed double-conversion-2.0.2.0 Configuring safe-exceptions-0.1.5.0... Installed vector-0.12.0.1 Building hashable-1.2.6.0... Building safe-exceptions-0.1.5.0... Configuring monad-control-1.0.1.0... Installed safe-exceptions-0.1.5.0 Building monad-control-1.0.1.0... Configuring distributive-0.5.2... Installed hashable-1.2.6.0 Installed monad-control-1.0.1.0 Configuring fast-logger-2.4.10... Building fast-logger-2.4.10... Building distributive-0.5.2... Configuring scientific-0.3.4.12... Installed distributive-0.5.2 Configuring constraints-0.9.1... Installed fast-logger-2.4.10 Building scientific-0.3.4.12... Building constraints-0.9.1... Configuring text-format-0.3.1.1... Installed scientific-0.3.4.12 Building text-format-0.3.1.1... Configuring streaming-commons-0.1.17... Installed constraints-0.9.1 Building streaming-commons-0.1.17... Configuring lifted-base-0.2.3.10... Installed text-format-0.3.1.1 Building lifted-base-0.2.3.10... Configuring unordered-containers-0.2.8.0... Installed lifted-base-0.2.3.10 Building unordered-containers-0.2.8.0... Installed streaming-commons-0.1.17 Configuring comonad-5... Building comonad-5... Configuring attoparsec-0.13.1.0... Installed unordered-containers-0.2.8.0 Building attoparsec-0.13.1.0... Configuring formatting-6.2.4... Installed comonad-5 Building formatting-6.2.4... Configuring lifted-async-0.9.1.1... Installed formatting-6.2.4 Building lifted-async-0.9.1.1... Configuring resourcet-1.1.9... Installed attoparsec-0.13.1.0 Building resourcet-1.1.9... Installed lifted-async-0.9.1.1 Configuring bifunctors-5.4.1... Building bifunctors-5.4.1... Installed resourcet-1.1.9 Configuring conduit-1.2.9.1... Building conduit-1.2.9.1... Installed bifunctors-5.4.1 Configuring semigroupoids-5.1... Configuring profunctors-5.2... Installed conduit-1.2.9.1 Building profunctors-5.2... Building semigroupoids-5.1... Installed profunctors-5.2 Configuring conduit-extra-1.1.15... Building conduit-extra-1.1.15... Installed semigroupoids-5.1 Configuring free-4.12.4... Building free-4.12.4... Installed conduit-extra-1.1.15 Configuring monad-logger-0.3.22... Building monad-logger-0.3.22... Installed free-4.12.4 Configuring adjunctions-4.3... Installed monad-logger-0.3.22 Building adjunctions-4.3... Installed adjunctions-4.3 Configuring kan-extensions-5.0.1... Building kan-extensions-5.0.1... Installed kan-extensions-5.0.1 Configuring lens-4.15.1... Building lens-4.15.1... Installed lens-4.15.1 Configuring async-refresh-0.1.7... Building async-refresh-0.1.7... Failed to install async-refresh-0.1.7 Build log ( /home/builder/.cabal/logs/async-refresh-0.1.7.log ): cabal: Entering directory '/tmp/cabal-tmp-7683/async-refresh-0.1.7' Configuring async-refresh-0.1.7... Building async-refresh-0.1.7... Preprocessing library async-refresh-0.1.7... [1 of 5] Compiling Control.Concurrent.Async.Refresh.Prelude ( src/Control/Concurrent/Async/Refresh/Prelude.hs, dist/build/Control/Concurrent/Async/Refresh/Prelude.o ) [2 of 5] Compiling Control.Concurrent.Async.Refresh.Types ( src/Control/Concurrent/Async/Refresh/Types.hs, dist/build/Control/Concurrent/Async/Refresh/Types.o ) [3 of 5] Compiling Control.Concurrent.Async.Refresh.Util ( src/Control/Concurrent/Async/Refresh/Util.hs, dist/build/Control/Concurrent/Async/Refresh/Util.o ) [4 of 5] Compiling Control.Concurrent.Async.Refresh.Lenses ( src/Control/Concurrent/Async/Refresh/Lenses.hs, dist/build/Control/Concurrent/Async/Refresh/Lenses.o ) [5 of 5] Compiling Control.Concurrent.Async.Refresh ( src/Control/Concurrent/Async/Refresh.hs, dist/build/Control/Concurrent/Async/Refresh.o ) src/Control/Concurrent/Async/Refresh.hs:145:52: error: • Could not deduce (Integral b0) arising from a use of ‘^’ from the context: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) bound by the type signature for: asyncRefreshThread :: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) => AsyncRefreshConf m a -> m () at src/Control/Concurrent/Async/Refresh.hs:(132,1)-(137,50) The type variable ‘b0’ is ambiguous These potential instances exist: instance forall a k (b :: k). Integral a => Integral (Const a b) -- Defined in ‘Data.Functor.Const’ instance Integral a => Integral (Identity a) -- Defined in ‘Data.Functor.Identity’ instance Integral Integer -- Defined in ‘GHC.Real’ ...plus two others ...plus 9 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘(*)’, namely ‘10 ^ 3’ In the first argument of ‘threadDelay’, namely ‘(computeRefreshTime conf delay * 10 ^ 3)’ In a stmt of a 'do' block: threadDelay (computeRefreshTime conf delay * 10 ^ 3) src/Control/Concurrent/Async/Refresh.hs:145:55: error: • Could not deduce (Num b0) arising from the literal ‘3’ from the context: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) bound by the type signature for: asyncRefreshThread :: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) => AsyncRefreshConf m a -> m () at src/Control/Concurrent/Async/Refresh.hs:(132,1)-(137,50) The type variable ‘b0’ is ambiguous These potential instances exist: instance forall a k (b :: k). Num a => Num (Const a b) -- Defined in ‘Data.Functor.Const’ instance Num a => Num (Identity a) -- Defined in ‘Data.Functor.Identity’ instance Num Integer -- Defined in ‘GHC.Num’ ...plus four others ...plus 23 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘(^)’, namely ‘3’ In the second argument of ‘(*)’, namely ‘10 ^ 3’ In the first argument of ‘threadDelay’, namely ‘(computeRefreshTime conf delay * 10 ^ 3)’ src/Control/Concurrent/Async/Refresh.hs:150:51: error: • Could not deduce (Integral b1) arising from a use of ‘^’ from the context: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) bound by the type signature for: asyncRefreshThread :: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) => AsyncRefreshConf m a -> m () at src/Control/Concurrent/Async/Refresh.hs:(132,1)-(137,50) The type variable ‘b1’ is ambiguous These potential instances exist: instance forall a k (b :: k). Integral a => Integral (Const a b) -- Defined in ‘Data.Functor.Const’ instance Integral a => Integral (Identity a) -- Defined in ‘Data.Functor.Identity’ instance Integral Integer -- Defined in ‘GHC.Real’ ...plus two others ...plus 9 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘(*)’, namely ‘10 ^ 3’ In the first argument of ‘threadDelay’, namely ‘(conf ^. Lens.defaultInterval * 10 ^ 3)’ In a stmt of a 'do' block: threadDelay (conf ^. Lens.defaultInterval * 10 ^ 3) src/Control/Concurrent/Async/Refresh.hs:150:54: error: • Could not deduce (Num b1) arising from the literal ‘3’ from the context: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) bound by the type signature for: asyncRefreshThread :: (MonadIO m, MonadBaseControl IO m, MonadCatch m, MonadLogger m, Forall (Pure m)) => AsyncRefreshConf m a -> m () at src/Control/Concurrent/Async/Refresh.hs:(132,1)-(137,50) The type variable ‘b1’ is ambiguous These potential instances exist: instance forall a k (b :: k). Num a => Num (Const a b) -- Defined in ‘Data.Functor.Const’ instance Num a => Num (Identity a) -- Defined in ‘Data.Functor.Identity’ instance Num Integer -- Defined in ‘GHC.Num’ ...plus four others ...plus 23 instances involving out-of-scope types (use -fprint-potential-instances to see them all) • In the second argument of ‘(^)’, namely ‘3’ In the second argument of ‘(*)’, namely ‘10 ^ 3’ In the first argument of ‘threadDelay’, namely ‘(conf ^. Lens.defaultInterval * 10 ^ 3)’ cabal: Leaving directory '/tmp/cabal-tmp-7683/async-refresh-0.1.7' cabal: Error: some packages failed to install: async-refresh-0.1.7 failed during the building phase. The exception was: ExitFailure 1