-
Notifications
You must be signed in to change notification settings - Fork 20
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
Make dyre cabal-sandbox and stack aware #29
Comments
|
Has anyone attempted this? |
Didn't a04be85 fix this (for stack at the very least) |
@IvanMalison I don't consider this issue solved by my patch. It just runs the ghc command "inside" the stack environment if a stack.yaml is present. To actually make this cabal sandbox and stack aware one would have to detect a cabal file or a stack project and then run |
would allow an approach to this where we simply take the first executable target to be what we are trying to build. @noughtmare would that satisfy your needs? |
I don't understand how that would work. I thought of something like doing |
https://github.com/yamadapc/stack-run Might be an option here |
I think the key is how to know stack is there. How could an application know it was installed by stack, not cabal-install, or binary distribution. |
I'm going to close this. Cabal sandboxes are deprecated and the developers intend to remove support. dyre works fairly well with the newstyle cabal store, with a bit of extra effort. (That reminds me, I probably ought to build those smarts in Dyre itself). As for Stack, code was merged that purportedly adds stack support. I don't use stack so I haven't tested it, but any issues can be raised as new tickets. |
By using stack install --local-bin-path,I can specific the produced executable. As of 0.13, xmonad --recompile will look for a custom build script called build. This is what's the build file looks like in my xmonad configuration directory #!/bin/sh set -e Xmonad will pass the finally expected excutable path to the argument 1 of build script |
It would be helpful if dyre worked with stack and cabal-sandbox by default. I ran into this need when trying to hack around on the Yi editor which uses dyre.
The text was updated successfully, but these errors were encountered: