Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ejconlon committed Dec 18, 2023
1 parent d21a3cf commit 1cf5328
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
26 changes: 17 additions & 9 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,33 @@ src_dirs := "src test"
default:
just --list

# Build and run tests on file change
watch target="":
{{ stack_build }} --test --file-watch {{ target }}

# Build and run tests
test:
{{ stack_build }} --test
test target="":
{{ stack_build }} --test {{ target }}

# Build only
build:
{{ stack_build }} --test --no-run-tests
build target="":
{{ stack_build }} --test --no-run-tests {{ target }}

# Enter repl
repl target="":
stack ghci --test --ghci-options "-XOverloadedStrings" {{ target }}

# Clean stack work
clean:
stack clean --full

# Enter repl
ghci:
stack ghci --test

# Open browser with generated docs
docs:
stack haddock --open

# Install tool deps
deps:
stack build --copy-compiler-tool hlint fourmolu
stack build --copy-compiler-tool hlint fourmolu apply-refact

# Format with fourmolu
format:
Expand All @@ -37,3 +41,7 @@ format:
lint:
stack exec -- hlint {{ src_dirs }}

# Apply hlint suggestions
lint-apply:
find {{ src_dirs }} -name '*.hs' | xargs -t -I % stack exec -- hlint % --refactor --refactor-options="--inplace"

2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-20.17
resolver: lts-22.0

ghc-options:
"$everything": -haddock
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
sha256: 14ca51a9a597c32dd7804c10d079feea3d0ae40c5fbbb346cbd67b3ae49f6d01
size: 649598
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/17.yaml
original: lts-20.17
sha256: e176944bc843f740e05242fa7a66ca1f440c127e425254f7f1257f9b19add23f
size: 712153
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/0.yaml
original: lts-22.0

0 comments on commit 1cf5328

Please sign in to comment.