Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1.  How to define macro var with stack/cabal/etc? (PY)


----------------------------------------------------------------------

Message: 1
Date: Wed, 20 Jun 2018 09:25:20 +0300
From: PY <aqua...@gmail.com>
To: beginners@haskell.org
Subject: [Haskell-beginners] How to define macro var with
        stack/cabal/etc?
Message-ID: <83598e9c-172c-b981-f582-830a234d8...@gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed

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



------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 120, Issue 10
******************************************

Reply via email to