Resolving dependencies... Configuring mtl-2.2.1... Configuring text-1.2.2.1... Building mtl-2.2.1... Building text-1.2.2.1... Installed mtl-2.2.1 Configuring logict-0.6.0.2... Building logict-0.6.0.2... Installed logict-0.6.0.2 Installed text-1.2.2.1 Configuring parsec-3.1.11... Building parsec-3.1.11... Installed parsec-3.1.11 Downloading peg-0.2... Configuring peg-0.2... Building peg-0.2... Failed to install peg-0.2 Build log ( /home/builder/.cabal/logs/peg-0.2.log ): cabal: Entering directory '/tmp/cabal-tmp-22639/peg-0.2' Configuring peg-0.2... Building peg-0.2... Preprocessing executable 'peg' for peg-0.2... [1 of 1] Compiling Main ( Peg.hs, dist/build/peg/peg-tmp/Main.o ) Peg.hs:121:1: error: • Non type-variable argument in the constraint: MonadState PegState m (Use FlexibleContexts to permit this) • When checking the inferred type pushStack :: forall (m :: * -> *). MonadState PegState m => Value -> m () Peg.hs:122:1: error: • Non type-variable argument in the constraint: MonadState PegState m (Use FlexibleContexts to permit this) • When checking the inferred type appendStack :: forall (m :: * -> *). MonadState PegState m => [Value] -> m () Peg.hs:135:1: error: • Non type-variable argument in the constraint: MonadState PegState m (Use FlexibleContexts to permit this) • When checking the inferred type pushArg :: forall (m :: * -> *). MonadState PegState m => Value -> m () Peg.hs:221:1: error: • Non type-variable argument in the constraint: MonadState PegState m (Use FlexibleContexts to permit this) • When checking the inferred type bind :: forall (m :: * -> *) t. MonadState PegState m => String -> t -> m () Peg.hs:227:1: error: • Non type-variable argument in the constraint: MonadState PegState m (Use FlexibleContexts to permit this) • When checking the inferred type unbind :: forall (m :: * -> *). MonadState PegState m => String -> m () cabal: Leaving directory '/tmp/cabal-tmp-22639/peg-0.2' cabal: Error: some packages failed to install: peg-0.2 failed during the building phase. The exception was: ExitFailure 1