Resolving dependencies... Configuring graph-wrapper-0.2.4.2... Building graph-wrapper-0.2.4.2... Preprocessing library graph-wrapper-0.2.4.2... [1 of 2] Compiling Data.Graph.Wrapper.Internal ( Data/Graph/Wrapper/Internal.hs, dist/build/Data/Graph/Wrapper/Internal.o ) [2 of 2] Compiling Data.Graph.Wrapper ( Data/Graph/Wrapper.hs, dist/build/Data/Graph/Wrapper.o ) In-place registering graph-wrapper-0.2.4.2... Running Haddock for graph-wrapper-0.2.4.2... Running hscolour for graph-wrapper-0.2.4.2... Preprocessing library graph-wrapper-0.2.4.2... Preprocessing library graph-wrapper-0.2.4.2... Haddock coverage: 50% ( 6 / 12) in 'Data.Graph.Wrapper.Internal' 92% ( 22 / 24) in 'Data.Graph.Wrapper' Documentation created: dist/doc/html/graph-wrapper/index.html Installing library in /srv/hackage/var/build/tmp-install/lib/x86_64-linux-ghc-7.6.3/graph-wrapper-0.2.4.2 Registering graph-wrapper-0.2.4.2... Installed graph-wrapper-0.2.4.2 Downloading libcspm-0.1... Configuring libcspm-0.1... Building libcspm-0.1... Preprocessing library libcspm-0.1... [ 1 of 54] Compiling Util.Monad ( src/Util/Monad.hs, dist/build/Util/Monad.o ) [ 2 of 54] Compiling Util.List ( src/Util/List.hs, dist/build/Util/List.o ) [ 3 of 54] Compiling Util.Prelude ( src/Util/Prelude.hs, dist/build/Util/Prelude.o ) [ 4 of 54] Compiling CSPM.Compiler.Set ( src/CSPM/Compiler/Set.hs, dist/build/CSPM/Compiler/Set.o ) [ 5 of 54] Compiling Util.PrettyPrint ( src/Util/PrettyPrint.hs, dist/build/Util/PrettyPrint.o ) [ 6 of 54] Compiling CSPM.Evaluator.ValueSet[boot] ( src/CSPM/Evaluator/ValueSet.hs-boot, dist/build/CSPM/Evaluator/ValueSet.o-boot ) [ 7 of 54] Compiling Util.Annotated[boot] ( src/Util/Annotated.hs-boot, dist/build/Util/Annotated.o-boot ) [ 8 of 54] Compiling Util.Exception ( src/Util/Exception.hs, dist/build/Util/Exception.o ) src/Util/Exception.hs:50:10: Illegal instance declaration for `PrettyPrintable ErrorMessages' (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 -XFlexibleInstances if you want to disable this.) In the instance declaration for `PrettyPrintable ErrorMessages' Failed to install libcspm-0.1 cabal: Error: some packages failed to install: libcspm-0.1 failed during the building phase. The exception was: ExitFailure 1