Specifying build flags in cabal depencies

Hello, I've run across an annoyance with a Haskell project of mine that requires Snap built with SSL: I couldn't find a way to specify the flag "-fopensll" to pass when building the snap-server package. This means that building on a new machine requires either manually installing the right version of snap-server with -fopenssl or re-installing with after the Cabal build. Is there a better way to do this? Thanks, Pedro

Hi Pedro,
You may want to add a cabal.config file to your project which includes
constraints like:
"constraints: snap-server == 0.9.4.5, snap-server +fopenssl"
On Tue, Sep 9, 2014 at 12:09 PM, Pedro Vasconcelos
Hello,
I've run across an annoyance with a Haskell project of mine that requires Snap built with SSL: I couldn't find a way to specify the flag "-fopensll" to pass when building the snap-server package. This means that building on a new machine requires either manually installing the right version of snap-server with -fopenssl or re-installing with after the Cabal build.
Is there a better way to do this?
Thanks,
Pedro _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (2)
-
Aycan iRiCAN
-
Pedro Vasconcelos