← All packages

aihc-cabal-syntax2.0.0.0

Parse Cabal files for aihc

Open the imported Cabal file ↗

build-type
Simple
cabal-version
3.0
category
Parsing
extra-doc-files
CHANGELOG.md
extra-source-files
README.md test/fixtures/*.cabal
license
Unlicense
license-file
LICENSE
maintainer
David Himmelstrup <lemmih@gmail.com>
name
aihc-cabal-syntax
synopsis
Parse Cabal files for aihc
version
2.0.0.0
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "aihc-cabal-syntax",
  "version": "2.0.0.0",
  "cabalVersion": "3.0",
  "buildType": "Simple",
  "fields": {
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      "3.0"
    ],
    "category": [
      "Parsing"
    ],
    "description": [
      "Parse Cabal package files for the aihc compiler.\nRead package data, version ranges, and condition expressions."
    ],
    "extra-doc-files": [
      "CHANGELOG.md"
    ],
    "extra-source-files": [
      "README.md test/fixtures/*.cabal"
    ],
    "license": [
      "Unlicense"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "David Himmelstrup <lemmih@gmail.com>"
    ],
    "name": [
      "aihc-cabal-syntax"
    ],
    "synopsis": [
      "Parse Cabal files for aihc"
    ],
    "version": [
      "2.0.0.0"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "Aihc.Cabal"
          ],
          "otherModules": [
            "Aihc.Cabal.Internal.Condition",
            "Aihc.Cabal.Internal.Lexer",
            "Aihc.Cabal.Internal.Parser",
            "Aihc.Cabal.Internal.Platform",
            "Aihc.Cabal.Internal.Quirks",
            "Aihc.Cabal.Internal.Resolve",
            "Aihc.Cabal.Internal.Types",
            "Aihc.Cabal.Internal.Values",
            "Aihc.Cabal.Internal.Version"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.16 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "<0.13",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "containers",
              "range": "<0.9",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "text",
              "range": "<2.2",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "megaparsec",
              "range": ">=9 && <10",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "parser-combinators",
              "range": "<1.4",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "parser-tests",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "aihc-cabal-syntax",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "<0.13",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "containers",
              "range": "<0.9",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "text",
              "range": "<2.2",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "Cabal-syntax",
              "range": ">=3.18.1 && <3.19",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "hackage-compliance",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "Compliance.Adapter",
            "Compliance.Compare",
            "Compliance.Tests"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "aihc-cabal-syntax",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "<0.13",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "containers",
              "range": "<0.9",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "text",
              "range": "<2.2",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "Cabal-syntax",
              "range": ">=3.18.1 && <3.19",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "aeson",
              "range": "<2.3",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "tar",
              "range": "<0.7",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "directory",
              "range": "<1.4",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "filepath",
              "range": "<1.6",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    },
    {
      "kind": "test-suite",
      "name": "pretty-roundtrip",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "Compliance.Adapter"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "aihc-cabal-syntax",
              "range": "-any",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "bytestring",
              "range": "<0.13",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "containers",
              "range": "<0.9",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "text",
              "range": "<2.2",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "Cabal-syntax",
              "range": ">=3.18.1 && <3.19",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "hedgehog",
              "range": ">=1.5 && <1.6",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    }
  ],
  "setupDependencies": [],
  "flags": [],
  "sourceRepositories": [],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/aihc-cabal-syntax-2.0.0.0/aihc-cabal-syntax.cabal",
  "sha256": "025357cfda4dbfa9e35b3813304b3fa95f791ab8c83e7552aaf89872baebed7f",
  "importedAt": "2026-10-04T08:58:57.056Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4.16 && <5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "<0.13",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "containers",
      "range": "<0.9",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "text",
      "range": "<2.2",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "megaparsec",
      "range": ">=9 && <10",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "parser-combinators",
      "range": "<1.4",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:parser-tests",
      "conditions": []
    },
    {
      "package": "aihc-cabal-syntax",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:parser-tests",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "<0.13",
      "libraries": [
        "main"
      ],
      "component": "test-suite:parser-tests",
      "conditions": []
    },
    {
      "package": "containers",
      "range": "<0.9",
      "libraries": [
        "main"
      ],
      "component": "test-suite:parser-tests",
      "conditions": []
    },
    {
      "package": "text",
      "range": "<2.2",
      "libraries": [
        "main"
      ],
      "component": "test-suite:parser-tests",
      "conditions": []
    },
    {
      "package": "Cabal-syntax",
      "range": ">=3.18.1 && <3.19",
      "libraries": [
        "main"
      ],
      "component": "test-suite:parser-tests",
      "conditions": []
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "aihc-cabal-syntax",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "<0.13",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "containers",
      "range": "<0.9",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "text",
      "range": "<2.2",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "Cabal-syntax",
      "range": ">=3.18.1 && <3.19",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "aeson",
      "range": "<2.3",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "tar",
      "range": "<0.7",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "directory",
      "range": "<1.4",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": "<1.6",
      "libraries": [
        "main"
      ],
      "component": "test-suite:hackage-compliance",
      "conditions": []
    },
    {
      "package": "base",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    },
    {
      "package": "aihc-cabal-syntax",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    },
    {
      "package": "bytestring",
      "range": "<0.13",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    },
    {
      "package": "containers",
      "range": "<0.9",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    },
    {
      "package": "text",
      "range": "<2.2",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    },
    {
      "package": "Cabal-syntax",
      "range": ">=3.18.1 && <3.19",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    },
    {
      "package": "hedgehog",
      "range": ">=1.5 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "test-suite:pretty-roundtrip",
      "conditions": []
    }
  ],
  "exposedModules": [
    "Aihc.Cabal"
  ],
  "documents": {
    "readme": {
      "status": "available",
      "sha256": "bdd7dad55dc48a197660788df49521b675e56723fdc9d28a00968342728554e3",
      "error": null,
      "checkedAt": "2026-10-04T08:58:57.762Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "66710489256833c2401d0a84f6cbbb97c30fe740eb65b18ea519b07ed49abba4",
      "error": null,
      "checkedAt": "2026-10-04T08:58:57.761Z"
    }
  },
  "versions": [
    {
      "version": "2.0.0.0",
      "imported_at": "2026-10-04T08:58:57.056Z"
    }
  ]
}

Import a package

Enter a package name and an exact version from Hackage. The site contains imported versions only.