Skip to content

Commit ddd1785

Browse files
authored
[INT-159] Add hpack check (#20)
Problem: We want to be able to check if cabal file is up to date. Solution: Add hpack check.
1 parent d1dc7d5 commit ddd1785

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
run: nix build -L .#checks.x86_64-linux.trailing-whitespace
3131
if: success() || failure()
3232

33+
- name: check-hpack
34+
run: nix build -L .#checks.x86_64-linux.hpack
35+
if: success() || failure()
36+
3337
# Export JSON serialized ghc-versions
3438
ghc-versions:
3539
runs-on: [self-hosted, nix]

flake.lock

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

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@
9292
# nixpkgs revision pinned by this flake
9393
legacyPackages = pkgs;
9494

95+
devShells.default = pkgs.mkShell {
96+
buildInputs = [ pkgs.hpack ];
97+
};
98+
9599
# used to dynamically build a matrix in the GitHub pipeline
96100
ghc-matrix = {
97101
include = map (ver: { ghc = ver; }) ghc-versions;
@@ -105,6 +109,8 @@
105109

106110
hlint = pkgs.build.haskell.hlint ./.;
107111
stylish-haskell = pkgs.build.haskell.stylish-haskell ./.;
112+
113+
hpack = pkgs.build.haskell.hpack ./.;
108114
};
109115
});
110116
}

0 commit comments

Comments
 (0)