'One liner with haskell.nix
How can one do a one liner with a precise set of dependency from stackage, like one can do with the nixpkgs head ?
nix shell --impure --expr "with import <nixpkgs> { };haskellPackages.ghcWithPackages(p: with p; [network HTTP conduit conduit-extra])" --command runghc -v helloworld.hs
VS
nix shell github:??/stackage?#lts-18.23? --command runghc -v myfile.hs
(edit : replaced old style command with nested bash as tipped in remark)
$(nix-build -E "with import <nixpkgs> { };haskellPackages.ghcWithPackages(p: with p; [network HTTP conduit conduit-extra])")/bin/runghc -v myfile.hs
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
