Resolving dependencies... Configuring hslua-0.1... Building hslua-0.1... Failed to install hslua-0.1 Build log ( /home/builder/.cabal/logs/hslua-0.1.log ): cabal: Entering directory '/tmp/cabal-tmp-27369/hslua-0.1' [1 of 1] Compiling Main ( /tmp/cabal-tmp-27369/hslua-0.1/dist/setup/setup.hs, /tmp/cabal-tmp-27369/hslua-0.1/dist/setup/Main.o ) Linking /tmp/cabal-tmp-27369/hslua-0.1/dist/setup/setup ... Configuring hslua-0.1... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Building hslua-0.1... Preprocessing library hslua-0.1... [1 of 1] Compiling Scripting.Lua ( src/Scripting/Lua.hs, dist/build/Scripting/Lua.o ) src/Scripting/Lua.hs:829:10: error: • Illegal instance declaration for ‘StackValue String’ (All instance types must be of the form (T a1 ... an) where a1 ... an are *distinct type variables*, and each type variable appears at most once in the instance head. Use FlexibleInstances if you want to disable this.) • In the instance declaration for ‘StackValue String’ src/Scripting/Lua.hs:839:10: error: • Illegal instance declaration for ‘StackValue (FunPtr LuaCFunction)’ (All instance types must be of the form (T a1 ... an) where a1 ... an are *distinct type variables*, and each type variable appears at most once in the instance head. Use FlexibleInstances if you want to disable this.) • In the instance declaration for ‘StackValue (FunPtr LuaCFunction)’ cabal: Leaving directory '/tmp/cabal-tmp-27369/hslua-0.1' cabal: Error: some packages failed to install: hslua-0.1 failed during the building phase. The exception was: ExitFailure 1