Constrained versions of dev tools (ormolu, hlint, stan).

This commit is contained in:
Martin Sosic 2022-03-17 17:52:51 +01:00
parent da8d3a1d85
commit 7865110085
3 changed files with 8 additions and 2 deletions

1
waspc/.gitignore vendored
View File

@ -5,6 +5,7 @@ dist-newstyle
.hie/
.bin/
stan.html
module-graph.png
# editor related
*.orig

View File

@ -3,4 +3,9 @@ with-compiler: ghc-8.10.7
packages: .
-- Speeds up builds by parallelizing them over the number of available CPUs.
jobs: $ncpus
jobs: $ncpus
constraints:
ormolu ==0.4.0.0,
stan ==0.0.1.0,
hlint ==3.3.6

View File

@ -163,7 +163,7 @@ case $COMMAND in
echo_and_eval "rm $PROJECT_ROOT/cabal.project.freeze && cabal freeze"
;;
module-graph)
echo_and_eval "graphmod --quiet --prune-edges $PROJECT_ROOT/src/**/*.hs | dot -Gsize=20,20! -Tpng"
echo_and_eval "graphmod --quiet --prune-edges $PROJECT_ROOT/src/**/*.hs | dot -Gsize=20,20! -Tpng -o module-graph.png" && echo "Printed module graph to module-graph.png."
;;
*)
print_usage