From c11fe7242558e0a21b8cadc085e96506349ce385 Mon Sep 17 00:00:00 2001 From: Andrea Bedini Date: Thu, 14 Sep 2023 11:41:07 +0800 Subject: [PATCH] Add fourmolu to the nix devshell Use that in the CI --- .github/workflows/{formatting.yaml => format.yaml} | 6 ++---- flake.nix | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) rename .github/workflows/{formatting.yaml => format.yaml} (59%) diff --git a/.github/workflows/formatting.yaml b/.github/workflows/format.yaml similarity index 59% rename from .github/workflows/formatting.yaml rename to .github/workflows/format.yaml index c4e1217..cc577ad 100644 --- a/.github/workflows/formatting.yaml +++ b/.github/workflows/format.yaml @@ -10,7 +10,5 @@ jobs: steps: - uses: actions/checkout@v4 - - - uses: haskell-actions/run-fourmolu@v9 - with: - version: "0.14.0.0" + - uses: cachix/install-nix-action@v22 + - run: nix develop --command fourmolu -m check . diff --git a/flake.nix b/flake.nix index e06ba10..b4e6111 100644 --- a/flake.nix +++ b/flake.nix @@ -37,6 +37,7 @@ cabal = "latest"; hlint = "latest"; haskell-language-server = "latest"; + fourmolu = "0.14.0.0"; }; };