Skip to content

Commit 3ddf2ff

Browse files
committed
Enforce LF line endings
1 parent 17f96c2 commit 3ddf2ff

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

nix/formatting.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,5 @@ in
2929
stylish = checkFormatting pkgs.stylish-haskell ../scripts/ci/run-stylish.sh;
3030
cabal-gild = checkFormatting pkgs.cabal-gild ../scripts/ci/run-cabal-gild.sh;
3131
nixpkgs-fmt = checkFormatting pkgs.nixpkgs-fmt ../scripts/ci/run-nixpkgs-fmt.sh;
32+
dos2unix = checkFormatting pkgs.dos2unix ../scripts/ci/run-dos2unix.sh;
3233
}

nix/shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ hsPkgs.shellFor {
1010
pkgs.fd
1111
pkgs.nixpkgs-fmt
1212
pkgs.stylish-haskell
13+
pkgs.dos2unix
1314
pkgs.cabal-gild
1415
pkgs.cabal-hoogle
1516
pkgs.ghcid

scripts/ci/run-dos2unix.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
fd -X dos2unix

0 commit comments

Comments
 (0)