-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
849 additions
and
597 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: haskell-stack | ||
on: | ||
- push | ||
- pull_request | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: | | ||
if [ -f .github/packages.txt ]; then sudo apt-get update && sudo apt-get install -y $(cat .github/packages.txt); fi | ||
- uses: freckle/stack-action@v4 | ||
with: | ||
pedantic: false |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
indentation: 2 | ||
column-limit: 120 | ||
function-arrows: leading | ||
comma-style: leading | ||
import-export-style: leading | ||
indent-wheres: false | ||
record-brace-space: true | ||
newlines-between-decls: 1 | ||
haddock-style: single-line | ||
haddock-style-module: | ||
let-style: auto | ||
in-style: left-align | ||
respectful: false | ||
fixities: [] | ||
unicode: never |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
stack_build := "stack build --fast" | ||
src_dirs := "src test" | ||
|
||
# No default tasks | ||
default: | ||
just --list | ||
|
||
# Build and run tests | ||
test: | ||
{{ stack_build }} --test | ||
|
||
# Build only | ||
build: | ||
{{ stack_build }} --test --no-run-tests | ||
|
||
# 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 | ||
|
||
# Format with fourmolu | ||
format: | ||
stack exec -- fourmolu --mode inplace {{ src_dirs }} | ||
|
||
# Lint with hlint | ||
lint: | ||
stack exec -- hlint {{ src_dirs }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.