← All packages

th-compat0.1.7

Backward- (and forward-)compatible Quote and Code types

Open the imported Cabal file ↗

author
Ryan Scott
bug-reports
https://github.com/haskell-compat/th-compat/issues
build-type
Simple
cabal-version
>=1.10
category
Text
copyright
(C) 2020 Ryan Scott
extra-source-files
CHANGELOG.md, README.md
homepage
https://github.com/haskell-compat/th-compat
license
BSD3
license-file
LICENSE
maintainer
Ryan Scott <ryan.gl.scott@gmail.com>
name
th-compat
synopsis
Backward- (and forward-)compatible Quote and Code types
tested-with
GHC == 8.0.2 , GHC == 8.2.2 , GHC == 8.4.4 , GHC == 8.6.5 , GHC == 8.8.4 , GHC == 8.10.7 , GHC == 9.0.2 , GHC == 9.2.8 , GHC == 9.4.8 , GHC == 9.6.7 , GHC == 9.8.4 , GHC == 9.10.3 , GHC == 9.12.2 , GHC == 9.14.1
version
0.1.7
Show the complete metadata as JSON
{
  "schemaVersion": 1,
  "name": "th-compat",
  "version": "0.1.7",
  "cabalVersion": "1.10",
  "buildType": "Simple",
  "fields": {
    "author": [
      "Ryan Scott"
    ],
    "bug-reports": [
      "https://github.com/haskell-compat/th-compat/issues"
    ],
    "build-type": [
      "Simple"
    ],
    "cabal-version": [
      ">=1.10"
    ],
    "category": [
      "Text"
    ],
    "copyright": [
      "(C) 2020 Ryan Scott"
    ],
    "description": [
      "This package defines a \"Language.Haskell.TH.Syntax.Compat\"\nmodule, which backports the @Quote@ and @Code@ types to\nwork across a wide range of @template-haskell@ versions.\nThe @makeRelativeToProject@ utility is also backported.\nOn recent versions of @template-haskell@ (2.17.0.0 or\nlater), this module simply reexports definitions\nfrom \"Language.Haskell.TH.Syntax\". Refer to the Haddocks\nfor \"Language.Haskell.TH.Syntax.Compat\" for examples of\nhow to use this module."
    ],
    "extra-source-files": [
      "CHANGELOG.md, README.md"
    ],
    "homepage": [
      "https://github.com/haskell-compat/th-compat"
    ],
    "license": [
      "BSD3"
    ],
    "license-file": [
      "LICENSE"
    ],
    "maintainer": [
      "Ryan Scott <ryan.gl.scott@gmail.com>"
    ],
    "name": [
      "th-compat"
    ],
    "synopsis": [
      "Backward- (and forward-)compatible Quote and Code types"
    ],
    "tested-with": [
      "GHC == 8.0.2\n, GHC == 8.2.2\n, GHC == 8.4.4\n, GHC == 8.6.5\n, GHC == 8.8.4\n, GHC == 8.10.7\n, GHC == 9.0.2\n, GHC == 9.2.8\n, GHC == 9.4.8\n, GHC == 9.6.7\n, GHC == 9.8.4\n, GHC == 9.10.3\n, GHC == 9.12.2\n, GHC == 9.14.1"
    ],
    "version": [
      "0.1.7"
    ]
  },
  "components": [
    {
      "kind": "library",
      "name": "main",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [
            "Language.Haskell.TH.Syntax.Compat"
          ],
          "otherModules": [],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.9 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "template-haskell",
              "range": ">=2.11 && <2.25",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {}
        },
        "branches": [
          {
            "condition": {
              "not": {
                "compiler": "ghc",
                "range": ">=9.4"
              }
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [
                  {
                    "package": "filepath",
                    "range": ">=1.2.0.0 && <1.6",
                    "libraries": [
                      "main"
                    ]
                  },
                  {
                    "package": "directory",
                    "range": ">=1.1.0.0 && <1.4",
                    "libraries": [
                      "main"
                    ]
                  }
                ],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          },
          {
            "condition": {
              "compiler": "ghc",
              "range": ">=8.6"
            },
            "then": {
              "data": {
                "buildable": null,
                "exposedModules": [],
                "otherModules": [],
                "dependencies": [],
                "fields": {}
              },
              "branches": []
            },
            "else": null
          }
        ]
      }
    },
    {
      "kind": "test-suite",
      "name": "spec",
      "tree": {
        "data": {
          "buildable": null,
          "exposedModules": [],
          "otherModules": [
            "Language.Haskell.TH.Syntax.CompatSpec",
            "Types"
          ],
          "dependencies": [
            {
              "package": "base",
              "range": ">=4.9 && <5",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "hspec",
              "range": ">=2 && <3",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "mtl",
              "range": ">=2.1 && <2.4",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "template-haskell",
              "range": ">=2.5 && <2.25",
              "libraries": [
                "main"
              ]
            },
            {
              "package": "th-compat",
              "range": "-any",
              "libraries": [
                "main"
              ]
            }
          ],
          "fields": {
            "type": [
              "exitcode-stdio-1.0"
            ]
          }
        },
        "branches": []
      }
    }
  ],
  "setupDependencies": [],
  "flags": [],
  "sourceRepositories": [
    {
      "kind": "head",
      "fields": {
        "location": [
          "https://github.com/haskell-compat/th-compat"
        ],
        "type": [
          "git"
        ]
      }
    }
  ],
  "warnings": [],
  "sourceUrl": "https://hackage.haskell.org/package/th-compat-0.1.7/th-compat.cabal",
  "sha256": "449be09a4e3f46ea4645700c026624c4b6f066f508187326c284dbdea8884bc9",
  "importedAt": "2026-10-14T12:43:39.696Z",
  "dependencies": [
    {
      "package": "base",
      "range": ">=4.9 && <5",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "template-haskell",
      "range": ">=2.11 && <2.25",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": []
    },
    {
      "package": "filepath",
      "range": ">=1.2.0.0 && <1.6",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": ">=9.4"
          }
        }
      ]
    },
    {
      "package": "directory",
      "range": ">=1.1.0.0 && <1.4",
      "libraries": [
        "main"
      ],
      "component": "library:main",
      "conditions": [
        {
          "not": {
            "compiler": "ghc",
            "range": ">=9.4"
          }
        }
      ]
    },
    {
      "package": "base",
      "range": ">=4.9 && <5",
      "libraries": [
        "main"
      ],
      "component": "test-suite:spec",
      "conditions": []
    },
    {
      "package": "hspec",
      "range": ">=2 && <3",
      "libraries": [
        "main"
      ],
      "component": "test-suite:spec",
      "conditions": []
    },
    {
      "package": "mtl",
      "range": ">=2.1 && <2.4",
      "libraries": [
        "main"
      ],
      "component": "test-suite:spec",
      "conditions": []
    },
    {
      "package": "template-haskell",
      "range": ">=2.5 && <2.25",
      "libraries": [
        "main"
      ],
      "component": "test-suite:spec",
      "conditions": []
    },
    {
      "package": "th-compat",
      "range": "-any",
      "libraries": [
        "main"
      ],
      "component": "test-suite:spec",
      "conditions": []
    }
  ],
  "exposedModules": [
    "Language.Haskell.TH.Syntax.Compat"
  ],
  "documents": {
    "readme": {
      "status": "available",
      "sha256": "3b0fc4c2395c5cbe5b276c0be24a47dd979eddcb83f9fb82c34210991a921df9",
      "error": null,
      "checkedAt": "2026-10-14T12:43:40.618Z"
    },
    "changelog": {
      "status": "available",
      "sha256": "f20b012c43015a5cde904fc36186a3a2c0cad17cc1eb1de016e655fdd3994ca1",
      "error": null,
      "checkedAt": "2026-10-14T12:43:40.624Z"
    }
  },
  "documentation": null,
  "versions": [
    {
      "version": "0.1.7",
      "imported_at": "2026-10-14T12:43:39.696Z"
    }
  ]
}

Import a package

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