Haskell – specify the GHC option on the command line through cabal (cabal install) without editing the package Cabal file
•
Java
When I install vectors with:
cabal install vector
I got a lot of specconstr restriction warnings. If I can specify - fspec constr count = some-higher, it will disappear
>Yes
cabal install vector -fspec-constr-count=HIGH
Work? > If x depends on vectors, is there a way to say in x.cabal that I'd better rely on vectors (if x is not installed) - fpsec constr count = high? Are vectors still maintained or is there a more recommended alternative?
Solution
You can pass additional options for programs run by cabal by using – prog options = opts
cabal install vector --ghc-options=-fspec-constr-count=HIGH
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码