Skip to content

Use Data-Files without installation #4379

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

Open
amigalemming opened this issue Mar 7, 2017 · 0 comments
Open

Use Data-Files without installation #4379

amigalemming opened this issue Mar 7, 2017 · 0 comments

Comments

@amigalemming
Copy link
Contributor

As long as I develop a package without Data-Files I can run and test my program locally using cabal run and cabal repl. As soon as I start to use Data-Files, the trouble begins. If I am in ghci/cabal repl I cannot simply hit :reload (or omit even that, since Haskell modules are not affected by Data-Files) anymore in order to adapt to changes in the Data-Files. I have to run cabal install. However, this may fail, since the program is temporarily incorrect.
Is there a way of using the local Data-Files when I do cabal run and cabal repl and using installed Data-Files when running programs from .cabal/bin? A way to achieve this might be Data-Files that are accessed relative to the path of the executable.

Related package: https://hackage.haskell.org/package/executable-path/
Related issue: #4120
Related discussion: http://mail.haskell.org/pipermail/cabal-devel/2017-March/010393.html

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

5 participants