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 lawful-0.1.0.0 Starting primitive-0.6.4.0 Building lawful-0.1.0.0 Building primitive-0.6.4.0 Completed lawful-0.1.0.0 Starting gdp-0.0.0.2 Building gdp-0.0.0.2 Completed gdp-0.0.0.2 Completed primitive-0.6.4.0 Downloading st2-0.1.0.1 Downloaded st2-0.1.0.1 Starting st2-0.1.0.1 Building st2-0.1.0.1 Failed to install st2-0.1.0.1 Build log ( /home/builder/.cabal/logs/ghc-8.6.1/st2-0.1.0.1-CbJGyIXS4oF2hNgYQrzSkG.log ): cabal: Entering directory '/tmp/cabal-tmp-27548/st2-0.1.0.1' Configuring st2-0.1.0.1... Preprocessing library for st2-0.1.0.1.. Building library for st2-0.1.0.1.. [1 of 1] Compiling Control.Monad.ST2 ( src/Control/Monad/ST2.hs, dist/build/Control/Monad/ST2.o ) src/Control/Monad/ST2.hs:392:51: error: Unexpected kind variable ‘r’ Perhaps you intended to use PolyKinds In the type signature for ‘runRegion#’ | 392 | runRegion# :: forall (r :: RuntimeRep) (o :: TYPE r) s. | ^ cabal: Leaving directory '/tmp/cabal-tmp-27548/st2-0.1.0.1' cabal: Error: some packages failed to install: st2-0.1.0.1-CbJGyIXS4oF2hNgYQrzSkG failed during the building phase. The exception was: ExitFailure 1