freckle / weeder-action

Run Weeder to uncover unused Haskell functions
MIT License
7 stars 0 forks source link
actions haskell

Weeder Action

GitHub Action to run Weeder to find any unused functions in a Haskell project and annotate the Build with their locations.

Example in Diff

Prerequisites

See the Weeder README for project requirements.

You will need to run this step in the same Job as you compile your project, or make the .hie files available some other way.

Usage

steps:
  - uses: actions/checkout@v3
  - uses: freckle/stack-cache-action@v2
  - id: stack
    uses: freckle/stack-action@v3
  - uses: freckle/weeder-action@v2
    with:
      ghc-version: ${{ steps.stack.outputs.compiler-version }}

Inputs

Outputs

This Action sets an output named log to the path containing the output of running weeder. This can be useful if you use fail: false and wish to do something on that output yourself afterwards.


LICENSE