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

support nix-shell develop-mode. #83

Open
clojurians-org opened this issue Feb 24, 2020 · 3 comments
Open

support nix-shell develop-mode. #83

clojurians-org opened this issue Feb 24, 2020 · 3 comments

Comments

@clojurians-org
Copy link

is it feasible to get nix-shell develop-mode environment?
so [nix-shell --pure --run 'cabal repl'] can be used for develop.

it's space-waste to use different tool for development and build.

@nh2
Copy link
Owner

nh2 commented Feb 24, 2020

I think that should work.

I haven't tried it for static-haskell-nix specifically, but in other nix+Haskell projects I regularly go into the nix-shell and do Cabal actions using runghc Setup.hs mycommand ..., e.g. the repl you mention.

Give it a shot and report back :)

@clojurians-org
Copy link
Author

clojurians-org commented Feb 25, 2020

i can use cabal for developing easily with static build.
only with emacs + dante, it will work.
but i have no idea how to do it for stack, i'll explore the stack2nix a little.

some simple example

https://github.com/clojurians-org/haskell-example/blob/master/minio-migration/default.nix
https://github.com/clojurians-org/my-env/blob/master/nix.conf/postgrest-6.0.1/default.nix

@clojurians-org
Copy link
Author

i found haskell.nix is more friendly integrated with stack for nix.
https://github.com/input-output-hk/haskell.nix

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

2 participants