Merge pull request #17 from srid/hlint

Add hlint (relude)
This commit is contained in:
Sridhar Ratnakumar 2022-05-04 17:21:05 -04:00 committed by GitHub
commit 14c8d41a6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3294 additions and 3 deletions

View file

@ -10,18 +10,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13 - uses: cachix/install-nix-action@v17
with: with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/i6laym9jw3wg9mw6ncyrk6gjx4l34vvx/install
install_options: "--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve"
extra_nix_config: | extra_nix_config: |
experimental-features = nix-command flakes experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Cache Nix dependencies - name: Cache Nix dependencies
run: | run: |
nix develop -j 4 -c echo nix develop -j 4 -c echo
- name: Format check - name: Format check
run: | run: |
nix develop -j auto -c treefmt --fail-on-change nix develop -j auto -c treefmt --fail-on-change
- name: Hlint
run: |
nix develop -j auto -c hlint src
- name: Build - name: Build
id: build id: build
run: | run: |

3288
.hlint.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -6,6 +6,7 @@ Haskell project template optimized for a fully reproducible and friendly develop
- VSCode + [HLS](https://github.com/haskell/haskell-language-server) - VSCode + [HLS](https://github.com/haskell/haskell-language-server)
- [fourmolu](https://github.com/fourmolu/fourmolu) autoformatting - [fourmolu](https://github.com/fourmolu/fourmolu) autoformatting
- [Relude](https://github.com/kowainik/relude#relude) as Prelude. - [Relude](https://github.com/kowainik/relude#relude) as Prelude.
- `.hlint.yaml` is [from relude](https://github.com/kowainik/relude/blob/main/.hlint.yaml)
## Getting Started ## Getting Started