Warning: The install command is a part of the legacy v1 style of cabal usage. Please switch to using either the new project style and the new-install command or the legacy v1-install alias as new-style projects will become the default in the next version of cabal-install. Please file a bug if you cannot replicate a working v1- use case with the new-style commands. For more information, see: https://wiki.haskell.org/Cabal/NewBuild Resolving dependencies... Starting base-orphans-0.8 Starting primitive-0.6.4.0 Building base-orphans-0.8 Building primitive-0.6.4.0 Completed base-orphans-0.8 Starting random-1.1 Building random-1.1 Completed random-1.1 Starting transformers-compat-0.6.2 Building transformers-compat-0.6.2 Completed transformers-compat-0.6.2 Starting transformers-base-0.4.5.2 Building transformers-base-0.4.5.2 Completed transformers-base-0.4.5.2 Completed primitive-0.6.4.0 Starting MonadRandom-0.5.1.1 Building MonadRandom-0.5.1.1 Completed MonadRandom-0.5.1.1 Starting dunai-0.5 Building dunai-0.5 Failed to install dunai-0.5 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/dunai-0.5-Fid8f7ELrqrK7G72QCa4FQ.log ): cabal: Entering directory '/tmp/cabal-tmp-13595/dunai-0.5' Configuring dunai-0.5... Preprocessing library for dunai-0.5.. Building library for dunai-0.5.. [ 1 of 22] Compiling Control.Arrow.Util ( src/Control/Arrow/Util.hs, dist/build/Control/Arrow/Util.o ) [ 2 of 22] Compiling Data.MonadicStreamFunction.InternalCore ( src/Data/MonadicStreamFunction/InternalCore.hs, dist/build/Data/MonadicStreamFunction/InternalCore.o ) src/Data/MonadicStreamFunction/InternalCore.hs:43:1: warning: [-Wunused-imports] The import of ‘Control.Arrow’ is redundant except perhaps to import instances from ‘Control.Arrow’ To import instances alone, use: import Control.Arrow() | 43 | import Control.Arrow | ^^^^^^^^^^^^^^^^^^^^ src/Data/MonadicStreamFunction/InternalCore.hs:44:1: warning: [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 44 | import Control.Applicative | ^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/MonadicStreamFunction/InternalCore.hs:47:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Base’ is redundant except perhaps to import instances from ‘Control.Monad.Base’ To import instances alone, use: import Control.Monad.Base() | 47 | import Control.Monad.Base | ^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/MonadicStreamFunction/InternalCore.hs:48:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Trans.Class’ is redundant except perhaps to import instances from ‘Control.Monad.Trans.Class’ To import instances alone, use: import Control.Monad.Trans.Class() | 48 | import Control.Monad.Trans.Class | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 3 of 22] Compiling Data.MonadicStreamFunction.Core ( src/Data/MonadicStreamFunction/Core.hs, dist/build/Data/MonadicStreamFunction/Core.o ) src/Data/MonadicStreamFunction/Core.hs:63:1: warning: [-Wunused-imports] The import of ‘Data.Tuple’ is redundant except perhaps to import instances from ‘Data.Tuple’ To import instances alone, use: import Data.Tuple() | 63 | import Data.Tuple (swap) | ^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/MonadicStreamFunction/Core.hs:71:1: warning: [-Worphans] Orphan instance: instance Monad m => Arrow (MSF 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. | 71 | instance Monad m => Arrow (MSF m) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Data/MonadicStreamFunction/Core.hs:87:1: warning: [-Worphans] Orphan instance: instance Monad m => Functor (MSF m a) 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. | 87 | instance Monad m => Functor (MSF m a) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... src/Data/MonadicStreamFunction/Core.hs:94:1: warning: [-Worphans] Orphan instance: instance (Functor m, Monad m) => Applicative (MSF m a) 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. | 94 | instance (Functor m, Monad m) => Applicative (MSF m a) where | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... [ 4 of 22] Compiling Data.MonadicStreamFunction.Instances.Num ( src/Data/MonadicStreamFunction/Instances/Num.hs, dist/build/Data/MonadicStreamFunction/Instances/Num.o ) [ 5 of 22] Compiling Data.MonadicStreamFunction.Instances.ArrowPlus ( src/Data/MonadicStreamFunction/Instances/ArrowPlus.hs, dist/build/Data/MonadicStreamFunction/Instances/ArrowPlus.o ) [ 6 of 22] Compiling Data.MonadicStreamFunction.Instances.ArrowLoop ( src/Data/MonadicStreamFunction/Instances/ArrowLoop.hs, dist/build/Data/MonadicStreamFunction/Instances/ArrowLoop.o ) src/Data/MonadicStreamFunction/Instances/ArrowLoop.hs:15:1: warning: [-Wunused-imports] The import of ‘Control.Arrow’ is redundant except perhaps to import instances from ‘Control.Arrow’ To import instances alone, use: import Control.Arrow() | 15 | import Control.Arrow | ^^^^^^^^^^^^^^^^^^^^ [ 7 of 22] Compiling Data.MonadicStreamFunction.Instances.ArrowChoice ( src/Data/MonadicStreamFunction/Instances/ArrowChoice.hs, dist/build/Data/MonadicStreamFunction/Instances/ArrowChoice.o ) [ 8 of 22] Compiling Control.Monad.Trans.MSF.State ( src/Control/Monad/Trans/MSF/State.hs, dist/build/Control/Monad/Trans/MSF/State.o ) src/Control/Monad/Trans/MSF/State.hs:23:1: warning: [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 23 | import Control.Applicative | ^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Control/Monad/Trans/MSF/State.hs:30:1: warning: [-Wunused-imports] The import of ‘Data.MonadicStreamFunction.InternalCore’ is redundant except perhaps to import instances from ‘Data.MonadicStreamFunction.InternalCore’ To import instances alone, use: import Data.MonadicStreamFunction.InternalCore() | 30 | import Data.MonadicStreamFunction.InternalCore | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 9 of 22] Compiling Data.VectorSpace ( src/Data/VectorSpace.hs, dist/build/Data/VectorSpace.o ) [10 of 22] Compiling Data.MonadicStreamFunction.Util ( src/Data/MonadicStreamFunction/Util.hs, dist/build/Data/MonadicStreamFunction/Util.o ) src/Data/MonadicStreamFunction/Util.hs:10:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Base’ is redundant except perhaps to import instances from ‘Control.Monad.Base’ To import instances alone, use: import Control.Monad.Base() | 10 | import Control.Monad.Base | ^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/MonadicStreamFunction/Util.hs:19:1: warning: [-Wunused-imports] The import of ‘Control.Monad.Trans.MSF.State’ is redundant except perhaps to import instances from ‘Control.Monad.Trans.MSF.State’ To import instances alone, use: import Control.Monad.Trans.MSF.State() | 19 | import Control.Monad.Trans.MSF.State | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ src/Data/MonadicStreamFunction/Util.hs:88:10: warning: [-Wname-shadowing] This binding for ‘as’ shadows the existing binding bound at src/Data/MonadicStreamFunction/Util.hs:84:28 | 88 | (a : as) -> (Just a , as) | ^^ [11 of 22] Compiling Data.MonadicStreamFunction.Async ( src/Data/MonadicStreamFunction/Async.hs, dist/build/Data/MonadicStreamFunction/Async.o ) src/Data/MonadicStreamFunction/Async.hs:7:1: warning: [-Wunused-imports] The import of ‘Data.MonadicStreamFunction.Core’ is redundant except perhaps to import instances from ‘Data.MonadicStreamFunction.Core’ To import instances alone, use: import Data.MonadicStreamFunction.Core() | 7 | import Data.MonadicStreamFunction.Core | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [12 of 22] Compiling Data.MonadicStreamFunction ( src/Data/MonadicStreamFunction.hs, dist/build/Data/MonadicStreamFunction.o ) [13 of 22] Compiling Data.MonadicStreamFunction.ReactHandle ( src/Data/MonadicStreamFunction/ReactHandle.hs, dist/build/Data/MonadicStreamFunction/ReactHandle.o ) [14 of 22] Compiling Data.MonadicStreamFunction.Parallel ( src/Data/MonadicStreamFunction/Parallel.hs, dist/build/Data/MonadicStreamFunction/Parallel.o ) [15 of 22] Compiling Control.Monad.Trans.MSF.Writer ( src/Control/Monad/Trans/MSF/Writer.hs, dist/build/Control/Monad/Trans/MSF/Writer.o ) src/Control/Monad/Trans/MSF/Writer.hs:23:1: warning: [-Wunused-imports] The import of ‘Data.Monoid’ is redundant except perhaps to import instances from ‘Data.Monoid’ To import instances alone, use: import Data.Monoid() | 23 | import Data.Monoid | ^^^^^^^^^^^^^^^^^^ [16 of 22] Compiling Control.Monad.Trans.MSF.Reader ( src/Control/Monad/Trans/MSF/Reader.hs, dist/build/Control/Monad/Trans/MSF/Reader.o ) [17 of 22] Compiling Control.Monad.Trans.MSF.Random ( src/Control/Monad/Trans/MSF/Random.hs, dist/build/Control/Monad/Trans/MSF/Random.o ) [18 of 22] Compiling Control.Monad.Trans.MSF.RWS ( src/Control/Monad/Trans/MSF/RWS.hs, dist/build/Control/Monad/Trans/MSF/RWS.o ) src/Control/Monad/Trans/MSF/RWS.hs:16:1: warning: [-Wunused-imports] The import of ‘Data.Monoid’ is redundant except perhaps to import instances from ‘Data.Monoid’ To import instances alone, use: import Data.Monoid() | 16 | import Data.Monoid | ^^^^^^^^^^^^^^^^^^ [19 of 22] Compiling Control.Monad.Trans.MSF.Except ( src/Control/Monad/Trans/MSF/Except.hs, dist/build/Control/Monad/Trans/MSF/Except.o ) src/Control/Monad/Trans/MSF/Except.hs:183:33: error: • Could not deduce (Control.Monad.Fail.MonadFail m) arising from a use of ‘fromExcept’ from the context: Monad m bound by the type signature for: safely :: forall (m :: * -> *) a b. Monad m => MSFExcept m a b Empty -> MSF m a b at src/Control/Monad/Trans/MSF/Except.hs:182:1-55 Possible fix: add (Control.Monad.Fail.MonadFail m) to the context of a type expected by the context: forall c. ExceptT Empty m c -> m c or the type signature for: safely :: forall (m :: * -> *) a b. Monad m => MSFExcept m a b Empty -> MSF m a b • In the first argument of ‘morphS’, namely ‘fromExcept’ In the expression: morphS fromExcept msf In an equation for ‘safely’: safely (MSFExcept msf) = morphS fromExcept msf where fromExcept ma = do Right a <- runExceptT ma .... | 183 | safely (MSFExcept msf) = morphS fromExcept msf | ^^^^^^^^^^ src/Control/Monad/Trans/MSF/Except.hs:235:3: error: • Could not deduce (Control.Monad.Fail.MonadFail m) arising from a do statement with the failable pattern ‘Left e’ from the context: Monad m bound by the type signature for: reactimateExcept :: forall (m :: * -> *) e. Monad m => MSFExcept m () () e -> m e at src/Control/Monad/Trans/MSF/Except.hs:233:1-57 Possible fix: add (Control.Monad.Fail.MonadFail m) to the context of the type signature for: reactimateExcept :: forall (m :: * -> *) e. Monad m => MSFExcept m () () e -> m e • In a stmt of a 'do' block: Left e <- runExceptT $ reactimate $ runMSFExcept msfe In the expression: do Left e <- runExceptT $ reactimate $ runMSFExcept msfe return e In an equation for ‘reactimateExcept’: reactimateExcept msfe = do Left e <- runExceptT $ reactimate $ runMSFExcept msfe return e | 235 | Left e <- runExceptT $ reactimate $ runMSFExcept msfe | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-13595/dunai-0.5' cabal: Error: some packages failed to install: dunai-0.5-Fid8f7ELrqrK7G72QCa4FQ failed during the building phase. The exception was: ExitFailure 1