File tree Expand file tree Collapse file tree 8 files changed +5
-123
lines changed Expand file tree Collapse file tree 8 files changed +5
-123
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 45
45
inherit ( pkgs . cardanoDbSyncProject . projectModule ) src ;
46
46
} ;
47
47
48
- stylish-haskell = callPackage stylishHaskellCheck {
49
- inherit ( pkgs . cardanoDbSyncProject . projectModule ) src ;
50
- } ;
51
48
} ;
52
49
53
50
shell = import ./shell.nix {
Original file line number Diff line number Diff line change 1
- # Auto-running hlint and stylish-haskell on Commit
1
+ # Auto-running hlint on Commit
2
2
3
- This document describes how to have ` hlint ` and ` stylish-haskell ` locally on every commit.
3
+ This document describes how to have ` hlint ` locally on every commit.
4
4
5
5
# Installing Them
6
6
7
- Installing these two is as simple as ` cabal install hlint stylish-haskell ` which will install them
7
+ Installing this is as simple as ` cabal install hlint ` which will install them
8
8
in ` $HOME/.cabal/bin ` which should then be added to your ` PATH ` environment variable.
9
9
10
10
# Install the Git Pre-commit Hook
Original file line number Diff line number Diff line change 85
85
hlint = pkgs . callPackage pkgs . hlintCheck {
86
86
inherit ( pkgs . cardanoDbSyncProject . projectModule ) src ;
87
87
} ;
88
- stylish-haskell = pkgs . callPackage pkgs . stylishHaskellCheck {
89
- inherit ( pkgs . cardanoDbSyncProject . projectModule ) src ;
90
- } ;
91
88
} ;
92
89
93
90
exes = collectExes flake . packages ;
Original file line number Diff line number Diff line change 40
40
version = "3.2.7" ;
41
41
} ;
42
42
43
- stylish-haskell = haskell-nix . tool compiler "stylish-haskell" {
44
- version = "latest" ;
45
- modules = [ { reinstallableLibGhc = true ; } ] ;
46
- } ;
47
43
48
44
# systemd can't be statically linked:
49
45
postgresql = ( final . postgresql_11
Original file line number Diff line number Diff line change 78
78
nonDefaultBuildSystems = tail supportedSystems ;
79
79
# Paths or prefixes of paths of derivations to build only on the default system (ie. linux on hydra):
80
80
onlyBuildOnDefaultSystem =
81
- [ [ "checks" "hlint" ] [ "checks" "stylish-haskell" ] [ " dockerImage" ] ] ;
81
+ [ [ "checks" "hlint" ] [ "dockerImage" ] ] ;
82
82
# Paths or prefix of paths for which musl64 are disabled:
83
83
noMusl64Build = [
84
84
[ "shell" ]
Original file line number Diff line number Diff line change 4
4
# Haskell files you are about to commit. Sylish-haskell will modify the files
5
5
# that need modification in place. Hlinf warnings are reported as that and
6
6
# the commit is aborted, so you can fix it.
7
- # Obviously you need stylish-haskell and hlint on your path. The versions you
7
+ # Obviously you need hlint on your path. The versions you
8
8
# will need are the latest versions that were released before the Hackage
9
9
# index-state specified in the cabal.project file.
10
10
@@ -52,21 +52,13 @@ for f in $files ; do
52
52
done
53
53
54
54
if test ${# hsfiles[@]} -gt 0 ; then
55
- # echo "hsfiles:" "${hsfiles[@]}"
56
- stylish-haskell -i " ${hsfiles[@]} "
57
- if test $? -ne 0 ; then
58
- echo
59
- echo " Commit aborted. Stylish Haskell failed."
60
- exit 1
61
- fi
62
55
hlint " ${hsfiles[@]} "
63
56
if test $? -ne 0 ; then
64
57
echo
65
58
echo " Commit aborted. Fix the above error before trying again."
66
59
exit 1
67
60
fi
68
61
69
- # Need to add them if we want stylish-haskell changes to be commited.
70
62
git add " ${hsfiles[@]} "
71
63
fi
72
64
Original file line number Diff line number Diff line change 26
26
cabalWrapped
27
27
ghcid
28
28
hlint
29
- stylish-haskell
30
29
weeder
31
30
nixWrapped
32
31
pkgconfig
You can’t perform that action at this time.
0 commit comments