summary history branches tags files
commit:21ba0039c783d1637688a2f3245d5c1837a8c845
author:avh4
committer:avh4
date:Sun Jan 22 11:50:10 2023 -0800
parents:
Basic haskell script project with nix-shell
diff --git a/.envrc b/.envrc
line changes: +2/-0
index 0000000..c9293c0
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,2 @@
+use nix
+

diff --git a/.gitignore b/.gitignore
line changes: +1/-0
index 0000000..29963da
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/.direnv/

diff --git a/shell.nix b/shell.nix
line changes: +16/-0
index 0000000..1fea958
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,16 @@
+{ pkgs ? import <nixpkgs> { } }:
+
+let
+  ghc = "ghc92";
+  haskellPackages = pkgs.haskell.packages.${ghc};
+
+in haskellPackages.shellFor {
+  packages = p: [ ];
+  buildInputs = [
+    haskellPackages.cabal-install
+    haskellPackages.ghcid
+    haskellPackages.haskell-language-server
+
+    pkgs.nixfmt
+  ];
+}