{"id":31813670,"url":"https://github.com/webdevred/get-supported-ghc","last_synced_at":"2026-05-02T23:36:31.644Z","repository":{"id":308123797,"uuid":"1031698621","full_name":"webdevred/get-supported-ghc","owner":"webdevred","description":"This GitHub Action automatically detects the latest GHC version compatible with your Haskell project's base dependency constraint in package.yaml.","archived":false,"fork":false,"pushed_at":"2025-09-22T12:13:23.000Z","size":560,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-29T07:57:10.919Z","etag":null,"topics":["ci","continuous-integration","github-actions","haskell"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdevred.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-04T07:44:40.000Z","updated_at":"2025-09-22T12:13:21.000Z","dependencies_parsed_at":"2025-08-21T13:07:53.364Z","dependency_job_id":"d0d513ec-011d-4f13-90ec-79cfb6bc196a","html_url":"https://github.com/webdevred/get-supported-ghc","commit_stats":null,"previous_names":["webdevred/get-supported-ghc"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/webdevred/get-supported-ghc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevred%2Fget-supported-ghc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevred%2Fget-supported-ghc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevred%2Fget-supported-ghc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevred%2Fget-supported-ghc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevred","download_url":"https://codeload.github.com/webdevred/get-supported-ghc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevred%2Fget-supported-ghc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006769,"owners_count":26084148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ci","continuous-integration","github-actions","haskell"],"created_at":"2025-10-11T08:20:40.722Z","updated_at":"2026-05-02T23:36:31.638Z","avatar_url":"https://github.com/webdevred.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get Supported GHC Version\n\n[![Test Get Supported GHC Version Action](https://github.com/webdevred/get-supported-ghc/actions/workflows/test.yaml/badge.svg)](https://github.com/webdevred/get-supported-ghc/actions/workflows/test.yaml)\n\n\u003c!--toc:start--\u003e\n- [Get Supported GHC Version](#get-supported-ghc-version)\n  - [Inputs](#inputs)\n  - [Outputs](#outputs)\n  - [Example Usage](#example-usage)\n\u003c!--toc:end--\u003e\n\nThis GitHub Action automatically detects the latest GHC (Glasgow Haskell Compiler) version compatible with your Haskell project's `base` dependency constraint in `package.yaml`.\n\nUseful for CI/CD workflows where you want to install a GHC version that satisfies your project's dependency bounds.\n\n## Inputs\n\n| Input                  | Description                                                                                                                                 | Default        | Required |\n|------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|----------------|----------|\n| `package-yaml-path`    | Path to your `package.yaml` file relative to the repo root                                                                                  | `package.yaml` | No       |\n| `validate-lower-bound` | Fail if the base lower bound covers GHC major versions with breaking changes below the minimum version in `tested-with` in your package.yaml | `false`        | No       |\n\n## Outputs\n\n| Output            | Description                                                 |\n|-------------------|-------------------------------------------------------------|\n| `max-ghc-version` | The latest compatible GHC version to install                |\n| `min-ghc-version` | The oldest GHC version whose base satisfies the lower bound |\n| `ghc-version`     | Deprecated - use `max-ghc-version` instead                  |\n\n## Example Usage\n\n```yaml\nname: CI\n\non: [push, pull_request]\n\njobs:\n  setup:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout code\n        uses: actions/checkout@v4\n      - name: Get supported GHC versions\n        id: get-ghc\n        uses: webdevred/get-supported-ghc@v0.0.1\n        with:\n          package-yaml-path: examples/package.yaml\n          validate-lower-bound: true\n      - name: Set up GHC and Cabal\n        uses: haskell-actions/setup@v2.8.0\n        with:\n          ghc-version: \"${{ steps.get-ghc.outputs.max-ghc-version }}\"\n```\n\nFor `validate-lower-bound` to work, add a `tested-with` field to your `package.yaml`:\n\n```yaml\ntested-with: GHC == 9.6.4, GHC == 9.8.2, GHC == 9.10.1\ndependencies:\n  - base \u003e= 4.18 \u0026\u0026 \u003c 4.22\n```\n\nIf the `base` lower bound covers GHC major versions below your tested minimum (e.g. lower bound allows GHC 8.x but you only test with GHC 9.x), the action fails with a descriptive error.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevred%2Fget-supported-ghc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevred%2Fget-supported-ghc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevred%2Fget-supported-ghc/lists"}