Haskell one-liners - lahteenmaki.net

One-liners to launch a complete Haskell development environment.

No dependencies needed except for Nix.

If you clone the repo and add it to a path, you can give the contents of PKGS simply as command line arguments.

Use ARGS environment variable to give extra arguments to nix-shell.

REPL

						
                                         sh <(curl https://hs.lahteenmaki.net/repl)
PKGS='lens aeson'                        sh <(curl https://hs.lahteenmaki.net/repl)
PKGS=myHaskellProjects/hello/hello.cabal sh <(curl https://hs.lahteenmaki.net/repl)
PKGS=myHaskellProjects/hello/default.nix sh <(curl https://hs.lahteenmaki.net/repl)
						
					

Shell

						
                                         sh <(curl https://hs.lahteenmaki.net/shell)
PKGS='lens aeson'                        sh <(curl https://hs.lahteenmaki.net/shell)
PKGS=myHaskellProjects/hello/hello.cabal sh <(curl https://hs.lahteenmaki.net/shell)
PKGS=myHaskellProjects/hello/default.nix sh <(curl https://hs.lahteenmaki.net/shell)
						
					

GHCJS shell

						
                                         sh <(curl https://hs.lahteenmaki.net/ghcjs)
PKGS='lens aeson'                        sh <(curl https://hs.lahteenmaki.net/ghcjs)
PKGS=myHaskellProjects/hello/hello.cabal sh <(curl https://hs.lahteenmaki.net/ghcjs)
PKGS=myHaskellProjects/hello/default.nix sh <(curl https://hs.lahteenmaki.net/ghcjs)
						
					

Editor

						
                                         sh <(curl https://hs.lahteenmaki.net/editor)
PKGS='lens aeson'                        sh <(curl https://hs.lahteenmaki.net/editor)
PKGS=myHaskellProjects/hello/hello.cabal sh <(curl https://hs.lahteenmaki.net/editor)
PKGS=myHaskellProjects/hello/default.nix sh <(curl https://hs.lahteenmaki.net/editor)