Resolving dependencies... Configuring mtl-2.2.1... Building mtl-2.2.1... Installed mtl-2.2.1 Configuring ImperativeHaskell-1.0.0.1... Building ImperativeHaskell-1.0.0.1... Failed to install ImperativeHaskell-1.0.0.1 Build log ( /home/builder/.cabal/logs/ImperativeHaskell-1.0.0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-11253/ImperativeHaskell-1.0.0.1' Configuring ImperativeHaskell-1.0.0.1... Building ImperativeHaskell-1.0.0.1... Preprocessing library ImperativeHaskell-1.0.0.1... [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: error: • 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)) cabal: Leaving directory '/tmp/cabal-tmp-11253/ImperativeHaskell-1.0.0.1' cabal: Error: some packages failed to install: ImperativeHaskell-1.0.0.1 failed during the building phase. The exception was: ExitFailure 1