[Haskell-cafe] Cabal Compiler Flag Problem

Ben Derrett ben.derrett at googlemail.com
Wed Mar 24 01:26:02 EDT 2010


Hi,
I'm trying to install the Haskell cgi module, as per here
http://passingcuriosity.com/2009/haskell-fastcgi-with-apache/. When I type
cabal install cgi, I get the following error (on a Fedora instance):

cabal install cgi
Resolving dependencies...
Configuring MonadCatchIO-mtl-0.3.0.0...
Preprocessing library MonadCatchIO-mtl-0.3.0.0...
Building MonadCatchIO-mtl-0.3.0.0...
[1 of 1] Compiling Control.Monad.CatchIO ( Control/Monad/CatchIO.hs,
dist/build/Control/Monad/CatchIO.o )

Control/Monad/CatchIO.hs:146:34:
    Illegal signature in pattern: E.SomeException
        Use -XPatternSignatures to permit it
cabal: Error: some packages failed to install:
MonadCatchIO-mtl-0.3.0.0 failed during the building phase. The exception
was:
exit: ExitFailure 1
cgi-3001.1.8 depends on MonadCatchIO-mtl-0.3.0.0 which failed to install.

So, I modified my /root/.cabal/config with:
-- flags: -XPatternSignatures

This doesn't seem to resolve the problem. What do I need to do to change the
compiler flags?

Thanks,

Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100324/876628c2/attachment.html


More information about the Haskell-Cafe mailing list