Closed dten closed 2 years ago
right now it seems to be missing something.. any guess?
Hello, thank you for your contribution!
I agree that it needs to be specifiable to change the work-dir, I am just wondering right now, whether it would be better to have something more generic. I am thinking about allowing to specify environment variables, then you could have
cradle:
stack:
environment:
- STACK_WORK=.stack-work-directory
What do you think about that?
That sounds pretty compelling. I'll have another look
your amazing suggestion has kind of shown me that both changes feel a bit redundant right now. I found that the the code plugin and sublime plugins both allow specifying environments variables to add to the env of hls when running.
so for any additional stack arguments which can be passed via env this functionality is already easily usable and lets you use the implicit cradle.
i'll close this for now, but if you think the environment option is still useful to anyway i might pick that up again
resolves #345
annoyingly even though this is entirely optional it's a breaking change for implicit-hie-cradle because it uses the sole pattern https://github.com/Avi-D-coder/implicit-hie-cradle/blob/master/src/Hie/Implicit/Cradle.hs#L75