Resolving dependencies... Configuring ImperativeHaskell-1.0.0.0... Building ImperativeHaskell-1.0.0.0... Preprocessing library ImperativeHaskell-1.0.0.0... [1 of 4] Compiling Control.Monad.Imperative.Internals ( Control/Monad/Imperative/Internals.hs, dist/build/Control/Monad/Imperative/Internals.o ) Control/Monad/Imperative/Internals.hs:54:27: No instance for (Applicative (MIO r)) arising from the 'deriving' clause of a data type declaration Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself When deriving the instance for (Monad (MIO r)) Control/Monad/Imperative/Internals.hs:54:34: No instance for (Applicative (MIO r)) arising from the 'deriving' clause of a data type declaration Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself When deriving the instance for (MonadCont (MIO r)) Failed to install ImperativeHaskell-1.0.0.0 cabal: Error: some packages failed to install: ImperativeHaskell-1.0.0.0 failed during the building phase. The exception was: ExitFailure 1