Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Control GHC build options from environment variable using Cabal (Haskell)

Is it possible to build Haskell project using Cabal and control the GHC flags from environment variable?

in my project.cabal file there is a section 'GHC-Options', which controlls the flags, but I would love to additional set them from command line.

like image 592
Wojciech Danilo Avatar asked Jul 14 '13 11:07

Wojciech Danilo


1 Answers

If you only have on/off flags, you should use Cabal flags.

like image 51
Joachim Breitner Avatar answered Oct 13 '22 09:10

Joachim Breitner