hasql-check-ghc: Check inferred hasql statements with what GHC knows of their types
The types of a statement of Hasql.Check.Inferred.TH are only known once GHC has type-checked its module. This package gets them from GHC in two ways: . * Hasql.Check.Plugin, a GHC plugin that checks the statements against a database while their module compiles, making a statement that does not fit the schema a compile error at its quote. . * hasql-check-hie, which reads them from the .hie files GHC writes with -fwrite-ide-info, for hasql-check --inferred. It needs no database, so it can run inside a sandboxed build. . Both depend on GHC's own library: build them with the GHC the checked project is built with.
[Skip to Readme]
Flags
Manual Flags
| Name | Description | Default |
|---|---|---|
| lint | lint | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- hasql-check-ghc-0.5.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.5.0.0, 0.5.1.0 |
|---|---|
| Change log | ChangeLog.md |
| Dependencies | base (>=4.21 && <4.23), bytestring (>=0.11 && <0.13), containers (>=0.6 && <0.9), ghc (>=9.12 && <9.15), hasql-check (>=0.5 && <0.6), hasql-check-ghc, text (>=2.0 && <2.2) [details] |
| Tested with | ghc ==9.12.4 || ==9.14.1 |
| License | BSD-3-Clause |
| Copyright | 2026 Kronor |
| Author | Pranay Sashank, Jose Lorenzo Rodriguez |
| Maintainer | lorenzo@kronor.io, pranay.sashank@kronor.io |
| Uploaded | by lorenzo at 2026-10-29T15:22:24Z |
| Category | Database, Development |
| Home page | https://github.com/kronor-io/hasql-check |
| Bug tracker | https://github.com/kronor-io/hasql-check/issues |
| Source repo | head: git clone https://github.com/kronor-io/hasql-check(ghc) |
| Distributions | |
| Executables | hasql-check-hie |
| Downloads | 7 total (7 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs uploaded by user [build log] All reported builds failed as of 2026-10-29 [all 2 reports] |