Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass on development flag #11

Open
timmytofu opened this issue May 26, 2015 · 4 comments
Open

Pass on development flag #11

timmytofu opened this issue May 26, 2015 · 4 comments

Comments

@timmytofu
Copy link

Something about the loading means that the CPP DEVELOPMENT flag doesn't get passed on to the file that is dynamically loaded, so any #ifdef DEVELOPMENT blocks are not properly discriminated.

@chowells79
Copy link
Member

Just for testing purposes, can you tell me what version of ghc, Cabal (the library) and cabal (the binary) you have installed?

@timmytofu
Copy link
Author

7.8.4, 1.20.0.0, 1.20.0.3

@timmytofu
Copy link
Author

It works in the repl, but not when I cabal run, even though both are in development mode.

@epsilonhalbe
Copy link

I have the same problem - i have composed a snap project to find the bug - maybe it is helpful https://github.com/epsilonhalbe/tmp, while the flags are present in the main module, you can see that in the site module they are missing. I named the flags prd and dev for this is where I want to use them in the end.

The ghc/cabal versions are 7.10.2 and 1.22.4 Cabal/1.22.6 cabal-install, i also included a stack.yaml so the build is (better) reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants