static-haskell-nix icon indicating copy to clipboard operation
static-haskell-nix copied to clipboard

support nix-shell develop-mode.

Open clojurians-org opened this issue 5 years ago • 3 comments

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.

clojurians-org avatar Feb 24 '20 11:02 clojurians-org

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 :)

nh2 avatar Feb 24 '20 16:02 nh2

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 avatar Feb 25 '20 02:02 clojurians-org

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

clojurians-org avatar Feb 25 '20 04:02 clojurians-org