ghc-tcplugin-api: An API for type-checker plugins.

[ bsd3, ghc, library, plugin, type-system ] [ Propose Tags ]

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.


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,,, (info)
Change log
Dependencies base (>=4.13.0 && <4.20), containers (>=0.6 && <0.7), ghc (>=8.8 && <9.9), transformers (>=0.5 && <0.7) [details]
License BSD-3-Clause
Copyright 2021-2023 Sam Derbyshire
Author Sam Derbyshire
Maintainer Sam Derbyshire
Category Type System, GHC, Plugin
Home page
Uploaded by sheaf at 2023-08-29T19:36:23Z
Distributions NixOS:
Reverse Dependencies 4 direct, 2 indirect [details]
Downloads 1771 total (32 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-08-29 [all 1 reports]