Is it possible to use cpp preprocessors with haskell stack,
e.g:
{-# LANGUAGE CPP #-}
module MyModule (
main
#ifdef TEST
,functionUnderTest
,functionAlsoUnderTest
#endif
) where ....
with cabal, the following settings in .cabal appear to work:
cpp-options: -DTEST
is it possible to reproduce this with stack?