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 NineP-0.0.2.1 Starting extensible-exceptions-0.1.1.4 Building NineP-0.0.2.1 Building extensible-exceptions-0.1.1.4 Completed extensible-exceptions-0.1.1.4 Starting monad-loops-0.4.3 Building monad-loops-0.4.3 Completed NineP-0.0.2.1 Starting network-2.6.3.6 Completed monad-loops-0.4.3 Starting old-locale-1.0.0.7 Building old-locale-1.0.0.7 Completed old-locale-1.0.0.7 Starting regex-base-0.93.2 Building network-2.6.3.6 Building regex-base-0.93.2 Completed regex-base-0.93.2 Starting stateref-0.3 Building stateref-0.3 Completed stateref-0.3 Starting transformers-compat-0.6.2 Building transformers-compat-0.6.2 Completed network-2.6.3.6 Starting monad-peel-0.2.1.2 Building monad-peel-0.2.1.2 Completed transformers-compat-0.6.2 Starting old-time-1.1.0.3 Building old-time-1.1.0.3 Completed monad-peel-0.2.1.2 Starting regex-posix-0.95.2 Building regex-posix-0.95.2 Completed old-time-1.1.0.3 Starting hslogger-1.2.12 Building hslogger-1.2.12 Completed regex-posix-0.95.2 Starting exceptions-0.10.0 Building exceptions-0.10.0 Completed hslogger-1.2.12 Starting mstate-0.2.7 Building mstate-0.2.7 Failed to install mstate-0.2.7 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/mstate-0.2.7-Gxf2p9r1todFOst6xU6Bdo.log ): cabal: Entering directory '/tmp/cabal-tmp-26429/mstate-0.2.7' Configuring mstate-0.2.7... Preprocessing library for mstate-0.2.7.. Building library for mstate-0.2.7.. [1 of 1] Compiling Control.Concurrent.MState ( src/Control/Concurrent/MState.hs, dist/build/Control/Concurrent/MState.o ) src/Control/Concurrent/MState.hs:75:3: error: • Could not deduce (Control.Monad.Fail.MonadFail m) arising from a do statement with the failable pattern ‘(a, Just t')’ from the context: MonadPeelIO m bound by the type signature for: runMState :: forall (m :: * -> *) t a. MonadPeelIO m => MState t m a -> t -> m (a, t) at src/Control/Concurrent/MState.hs:(70,1)-(73,20) Possible fix: add (Control.Monad.Fail.MonadFail m) to the context of the type signature for: runMState :: forall (m :: * -> *) t a. MonadPeelIO m => MState t m a -> t -> m (a, t) • In a stmt of a 'do' block: (a, Just t') <- runAndWaitMaybe True m t In the expression: do (a, Just t') <- runAndWaitMaybe True m t return (a, t') In an equation for ‘runMState’: runMState m t = do (a, Just t') <- runAndWaitMaybe True m t return (a, t') | 75 | (a, Just t') <- runAndWaitMaybe True m t | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cabal: Leaving directory '/tmp/cabal-tmp-26429/mstate-0.2.7' Starting convertible-1.1.1.0 Completed exceptions-0.10.0 Building convertible-1.1.1.0 Completed convertible-1.1.1.0 cabal: Error: some packages failed to install: Network-NineP-0.4.4-1VBPiDN4KuD2MWPTE8cObw depends on Network-NineP-0.4.4 which failed to install. mstate-0.2.7-Gxf2p9r1todFOst6xU6Bdo failed during the building phase. The exception was: ExitFailure 1