Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify ghc options at command line via cabal (cabal-install) without editing .cabal files of packages

When I install vector with:

cabal install vector

I get lots of SpecConstr limit warnings which would go away if I could specify -fspec-constr-count=SOMETHING-HIGHER.

  1. Would

    cabal install vector -fspec-constr-count=HIGH
    

    work?

  2. If X depends on vector, is there a way to say in X.cabal I depend on vector with preferably (in case X is not yet already installed) -fpsec-constr-count=HIGH?

  3. Is vector still maintained or is there now a more recommendable alternative?

like image 559
Cetin Sert Avatar asked May 09 '12 15:05

Cetin Sert


1 Answers

You can pass extra options to programs run by Cabal by using --PROG-options=OPTS.

cabal install vector --ghc-options=-fspec-constr-count=HIGH
like image 196
hammar Avatar answered Oct 12 '22 01:10

hammar