This commit is contained in:
Amy de Buitléir 2025-09-15 18:40:34 +01:00
parent 118ee240d7
commit 2d07f3ceeb
4 changed files with 41 additions and 16 deletions

View file

@ -3,7 +3,7 @@
////
$ mkdir tempwork
$ cd tempwork
$ cp Main.hs ../flake.nix .
$ cp ../Main.hs ../flake.nix .
$ git add Main.hs flake.nix
$ nix develop
$ git add flake.lock

View file

@ -0,0 +1,6 @@
import Data.List.Extra
main :: IO ()
main = do
print $ lower "ABCDE"
print $ upper "XYZ"

View file

@ -0,0 +1,21 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, pandoc-columns }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
customGhc = pkgs.haskellPackages.ghcWithPackages (p: with p; [ p.extra ]);
in
{
devShells = rec {
default = pkgs.mkShell {
buildInputs = [ customGhc ];
};
};
}
);
}