[Haskell-beginners] How to define macro var with stack/cabal/etc?

PY aquagnu at gmail.com
Wed Jun 20 06:25:20 UTC 2018


Hello all,

I'm using conditional compilation:

#ifdef BLAH

blahBlah

#endif

And I want to define BLAN, but no in *.hs file. For example, with 
`stack` option, in yaml file, in cabal file, in environment variable... 
How can I do it? For example, `stack -DBLAH=1 build` or something else. 
What are the options?

===

Best regards, Paul



More information about the Beginners mailing list