I am working on a haskell application that calls a web service. I would like the stack build
application to be designed for the URL of the real production server when building with , but when debugging using the stack repl
application, it targets the URL of the test server.
I assume that this can be achieved using conditional compilation, but how to configure the stack to pass options, for example -DDEBUG=1
, to GHCi, but not to GHC?
In general, many tools (Visual Studio, Xcode ...) support several build configurations for a project. Is there a stack or equivalent bondage?
source
share