I tried to install the Haskell diagrams library and one of the dependencies cannot be installed. Being not that experienced to haskell, I cannot quite see how to resolve this error.
I removed warnings that I believe are not related to the failed build (------ warnings ommitted (-Winvalid-pp-token) -----
)
[hsenv]➜ ~HSENV cabal install vector-space-0.8.5 Resolving dependencies... Downloading vector-space-0.8.5... Configuring vector-space-0.8.5... /var/folders/nq/fx4vf3v14jz9b8mldvcyv1xr0000gn/T/23218.c:1:12: warning: control reaches end of non-void function [-Wreturn-type] int foo() {} ^ 1 warning generated. Building vector-space-0.8.5... Preprocessing library vector-space-0.8.5... ------ warnings ommitted (-Winvalid-pp-token) ----- src/Data/VectorSpace.hs:4:3: error: invalid preprocessing directive #-} ^ ------ warnings ommitted (-Winvalid-pp-token) ----- 2 warnings and 1 error generated. Failed to install vector-space-0.8.5 cabal: Error: some packages failed to install: vector-space-0.8.5 failed during the building phase. The exception was: ExitFailure 1