Skip to content

Commit 8bde701

Browse files
committed
Use Nix Flake to manage dependencies, upgrade dependencies
1 parent 9218a06 commit 8bde701

File tree

6 files changed

+106
-6
lines changed

6 files changed

+106
-6
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.direnv
12
.DS_Store
23
/.stack-work
34
/.vscode

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
4+
utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs =
8+
{
9+
self,
10+
nixpkgs,
11+
utils,
12+
}:
13+
utils.lib.eachDefaultSystem (
14+
system:
15+
let
16+
pkgs = import nixpkgs { inherit system; };
17+
in
18+
{
19+
devShells.default = pkgs.mkShell {
20+
buildInputs = with pkgs; [
21+
bash
22+
coreutils
23+
git-cliff
24+
gnumake
25+
haskell.compiler.ghc98
26+
haskellPackages.cabal-fmt
27+
haskellPackages.cabal-install
28+
haskellPackages.fourmolu
29+
haskellPackages.haskell-language-server
30+
haskellPackages.hlint
31+
haskellPackages.stack
32+
];
33+
};
34+
formatter = pkgs.nixfmt-tree; # Format this file with `nix fmt`
35+
}
36+
);
37+
}

stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: lts-22.4
1+
resolver: lts-23.18
22
packages:
33
- .
44
extra-deps:

stack.yaml.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file was autogenerated by Stack.
22
# You should not edit this file by hand.
33
# For more information, please see the documentation at:
4-
# https://docs.haskellstack.org/en/stable/lock_files
4+
# https://docs.haskellstack.org/en/stable/topics/lock_files
55

66
packages:
77
- completed:
@@ -13,7 +13,7 @@ packages:
1313
hackage: github-0.29
1414
snapshots:
1515
- completed:
16-
sha256: 8b211c5a6aad3787e023dfddaf7de7868968e4f240ecedf14ad1c5b2199046ca
17-
size: 714097
18-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/4.yaml
19-
original: lts-22.4
16+
sha256: d133abe75e408a407cce3f032c96ac1bbadf474a93b5156ebf4135b53382d56b
17+
size: 683827
18+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/23/18.yaml
19+
original: lts-23.18

0 commit comments

Comments
 (0)