diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4f1e1a..44a6750 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,24 @@ on: - cron: '0 0 * * 0' jobs: + hlint: + name: hlint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up HLint + uses: haskell/actions/hlint-setup@v2 + with: + version: "3.5" + + - name: Run Hlint + uses: haskell/actions/hlint-run@v2 + with: + path: '["src/", "test/"]' + fail-on: suggestion + cabal: name: ${{ matrix.os }} / ghc ${{ matrix.ghc }} runs-on: ${{ matrix.os }} diff --git a/.hlint.yaml b/.hlint.yaml new file mode 100644 index 0000000..8b0c4e5 --- /dev/null +++ b/.hlint.yaml @@ -0,0 +1 @@ +# Warnings currently triggered by your code diff --git a/test/Test/Colourista.hs b/test/Test/Colourista.hs index 17cad46..ad656a0 100644 --- a/test/Test/Colourista.hs +++ b/test/Test/Colourista.hs @@ -1,5 +1,3 @@ -{-# LANGUAGE ImplicitParams #-} - module Test.Colourista ( colouristaSpec ) where