ghc-tcplugin-api: An API for type-checker plugins.
This library provides a streamlined monadic interface for writing GHC type-checking plugins.
Each stage in a type-checking plugin (initialisation, solving, rewriting, shutdown) has a corresponding monad, preventing operations that are only allowed in some stages to be used in the other stages. Operations that work across multiple stages are overloaded across monads using MTL-like typeclasses.
Some operations, like creating evidence for constraints or creating custom type error messages, are also simplified.
Please refer to the associated GitHub repository for example usage.
Modules
[Index] [Quick Jump]
- GHC
- Core
- GHC.Core.Make
- GHC.Plugins
- TcPlugin
- Types
- Unique
- GHC.Types.Unique.DFM
- GHC.Types.Unique.FM
- Unique
- Utils
- GHC.Utils.Outputable
- Core
Downloads
- ghc-tcplugin-api-0.4.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.2.0.0, 0.3.0.0, 0.3.1.0, 0.4.0.0, 0.4.1.0, 0.5.0.0, 0.5.1.0, 0.6.0.0, 0.6.1.0, 0.7.0.0, 0.7.1.0, 0.8.0.0, 0.8.1.0, 0.8.2.0, 0.8.3.0, 0.9.0.0, 0.10.0.0, 0.11.0.0, 0.12.0.0, 0.13.0.0 (info) |
---|---|
Change log | changelog.md |
Dependencies | base (>=4.14.0 && <4.18), ghc (>=8.10 && <9.4), transformers (>=0.5 && <0.6) [details] |
License | BSD-3-Clause |
Copyright | 2021 Sam Derbyshire |
Author | Sam Derbyshire |
Maintainer | Sam Derbyshire |
Revised | Revision 1 made by sheaf at 2022-07-07T13:45:16Z |
Category | Type System, GHC, Plugin |
Home page | https://github.com/sheaf/ghc-tcplugin-api |
Uploaded | by sheaf at 2021-08-24T10:12:51Z |
Distributions | NixOS:0.11.0.0 |
Reverse Dependencies | 4 direct, 2 indirect [details] |
Downloads | 1976 total (121 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |