Skip to content

Get Supported GHC Version

Actions
Finds the latest GHC version that supports the base upper bound in your package.yaml file
v0.0.8
Latest
Star (0)

Tags

 (1)

Get Supported GHC Version

Test Get Supported GHC Version Action Check for outdated dependencies

This GitHub Action automatically detects the latest GHC (Glasgow Haskell Compiler) version compatible with your Haskell project's base dependency constraint in package.yaml.

Useful for CI/CD workflows where you want to install a GHC version that satisfies your project's dependency bounds.

Inputs

Input Description Default Required
package-yaml-path Path to your package.yaml file relative to the repo root package.yaml No

Outputs

Output Description
ghc-version The latest compatible GHC version to install

Example Usage

name: CI

on: [push, pull_request]

jobs:
  setup:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
      - name: Get latest supported GHC version
        id: get-ghc
        uses: webdevred/[email protected]
        with:
          package-yaml-path: examples/package.yaml
      - name: Set up GHC latest and Cabal
        id: setup-ghc
        uses: haskell-actions/[email protected]
        with:
          ghc-version: "${{ steps.get-ghc.outputs.ghc-version }}"

Get Supported GHC Version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Finds the latest GHC version that supports the base upper bound in your package.yaml file
v0.0.8
Latest

Tags

 (1)

Get Supported GHC Version is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.