<div>Hi,</div><div>I&#39;m trying to install the Haskell cgi module, as per here <a href="http://passingcuriosity.com/2009/haskell-fastcgi-with-apache/">http://passingcuriosity.com/2009/haskell-fastcgi-with-apache/</a>. When I type cabal install cgi, I get the following error (on a Fedora instance):</div>

<div><br></div><div>cabal install cgi</div><div>Resolving dependencies...</div><div>Configuring MonadCatchIO-mtl-0.3.0.0...</div><div>Preprocessing library MonadCatchIO-mtl-0.3.0.0...</div><div>Building MonadCatchIO-mtl-0.3.0.0...</div>

<div>[1 of 1] Compiling Control.Monad.CatchIO ( Control/Monad/CatchIO.hs, dist/build/Control/Monad/CatchIO.o )</div><div><br></div><div>Control/Monad/CatchIO.hs:146:34:</div><div>    Illegal signature in pattern: E.SomeException</div>

<div>        Use -XPatternSignatures to permit it</div><div>cabal: Error: some packages failed to install:</div><div>MonadCatchIO-mtl-0.3.0.0 failed during the building phase. The exception was:</div><div>exit: ExitFailure 1</div>

<div>cgi-3001.1.8 depends on MonadCatchIO-mtl-0.3.0.0 which failed to install.</div><div><br></div><div>So, I modified my /root/.cabal/config with:</div><div><div>-- flags: -XPatternSignatures</div><div><br></div><div>This doesn&#39;t seem to resolve the problem. What do I need to do to change the compiler flags?</div>

<div><br></div><div>Thanks,</div><div><br></div><div>Ben</div></div><div><br></div>