{
  "id": "ghcup",
  "name": "GHCup",
  "homepage": "https://www.haskell.org/ghcup/",
  "description": "The main installer for the Haskell Language Toolchain.",
  "executables": [
    "ghcup"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "~/.ghcup/config.yaml",
      "[configHome]/ghcup/config.yaml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "GHCup",
    "description": "Install a Haskell tool or choose the active version. Listing, removal, upgrade and the TUI are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "install"
        ],
        "label": "Install a tool",
        "source": [
          {
            "id": "guide",
            "kind": "manual",
            "url": "https://www.haskell.org/ghcup/guide/",
            "revision": "2026-10-27",
            "evidence": "# install the recommended GHC version\nghcup install ghc\n# install a specific GHC version\nghcup install ghc 8.2.2\n# install cabal-install\nghcup install cabal\nAll of the following are valid arguments to ghcup install ghc:\nlatest, recommended\nIf the argument is omitted, the default is recommended.\n"
          }
        ],
        "field": [
          {
            "id": "tool",
            "label": "Tool",
            "type": "string",
            "position": 0,
            "suggestions": [
              {
                "value": "ghc",
                "label": "GHC"
              },
              {
                "value": "cabal",
                "label": "cabal-install"
              }
            ],
            "sources": [
              "guide"
            ]
          },
          {
            "id": "version",
            "label": "Version or tag",
            "description": "Omit for recommended; latest and recommended are accepted tags.",
            "type": "string",
            "position": 1,
            "suggestions": [
              {
                "value": "recommended",
                "label": "recommended"
              },
              {
                "value": "latest",
                "label": "latest"
              }
            ],
            "sources": [
              "guide"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install",
            "fields": [
              "tool",
              "version"
            ],
            "required": [
              "tool"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "tool",
              "version"
            ]
          }
        ]
      },
      {
        "path": [
          "set"
        ],
        "label": "Set the active version",
        "source": [
          {
            "id": "guide",
            "kind": "manual",
            "url": "https://www.haskell.org/ghcup/guide/",
            "revision": "2026-10-27",
            "evidence": "# set the currently \"active\" GHC version\nghcup set ghc 8.4.4\n"
          }
        ],
        "field": [
          {
            "id": "tool",
            "label": "Tool",
            "type": "string",
            "position": 0,
            "suggestions": [
              {
                "value": "ghc",
                "label": "GHC"
              },
              {
                "value": "cabal",
                "label": "cabal-install"
              }
            ],
            "sources": [
              "guide"
            ]
          },
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "position": 1,
            "sources": [
              "guide"
            ]
          }
        ],
        "task": [
          {
            "id": "set",
            "label": "Set active",
            "fields": [
              "tool",
              "version"
            ],
            "required": [
              "tool",
              "version"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "tool",
              "version"
            ]
          }
        ]
      }
    ]
  }
}
