[Haskell-cafe] Cabal Compiler Flag Problem

Ben Derrett ben.derrett at googlemail.com
Wed Mar 24 01:52:49 EDT 2010


Thank you. I'm using GHC 6.8.2. I can't see ghc-options in the file
/root/.cabal/config, am I looking in the right place?

Ben

On Wed, Mar 24, 2010 at 1:30 AM, Ivan Miljenovic
<ivan.miljenovic at gmail.com>wrote:

> On 24 March 2010 16:26, Ben Derrett <ben.derrett at googlemail.com> wrote:
> > 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
>
> Interesting.... the code is obviously using extensible-exceptions but
> it doesn't seem to work.  What version of GHC are you using?
>
>
> >         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
>
> Nah, that's a GHC flag not a Cabal/cabal-install flag, so you'd have
> to edit the .cabal file to add that in (where it says ghc-options).
>
>
> --
> Ivan Lazar Miljenovic
> Ivan.Miljenovic at gmail.com
> IvanMiljenovic.wordpress.com
>



-- 
Ben Derrett
Department of Mathematics
MIT Class of 2012
bderrett at mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100324/8697f399/attachment.html


More information about the Haskell-Cafe mailing list