How to define macro var with stack/cabal/etc?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to define macro var with stack/cabal/etc?

Paul
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

_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners