Skip to content

cabal sdist does not work with conditional flags in executables #3851

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

Closed
agocorona opened this issue Sep 16, 2016 · 1 comment
Closed

cabal sdist does not work with conditional flags in executables #3851

agocorona opened this issue Sep 16, 2016 · 1 comment

Comments

@agocorona
Copy link

I have

 executable   monitorService
   if !impl(ghcjs >=0.1)
     main-is :      MonitorService.hs
     build-depends: base >4 && <5, transient, transient-universe, transformers
     default-language:  Haskell2010
     ghc-options:  -threaded -rtsopts
     hs-source-dirs: src/Transient/Move/Services
   else
     main-is : void.hs
     build-depends: base

cabal sdist
...
cabal.exe: MonitorService.hsvoid.hs doesn't exist

@23Skidoo
Copy link
Member

Duplicate of #3313.

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

No branches or pull requests

2 participants