preql: safe PostgreSQL queries using Quasiquoters

[ bsd3, database, library, postgresql ] [ Propose Tags ]

Before you Post(gres)QL, preql.

preql provides an effect type class SQL, a select quasiquoter that checks SQL syntax at compile time, and a sql quasiquoter that supports variable antiquotes, but does not attempt syntax validation.

For more details, read the quickstart or the vision

Most applications will want to import the top-level module Preql. When writing SQL instances or your own higher-level abstractions, you may want the lower-level, IO-specific functions in Preql.Wire, not all of which are re-exported from Preql.


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.1, 0.2, 0.3, 0.4, 0.5, 0.6
Change log
Dependencies aeson (>=, array (>=, base (>= && <5.0), binary-parser (>=0.5.6), bytestring (>=, bytestring-strict-builder (>=, contravariant (>=1.5.2), mtl (>=2.2.2), postgresql-binary (>=0.12.2), postgresql-libpq (>=, scientific (>=, syb (>=0.7.1), template-haskell (>=, text (>=, th-lift-instances (>=0.1.17), time (>=1.9.3), transformers (>=, unordered-containers, uuid (>=1.3.13), vector (>=, vector-sized (>=1.4.1) [details]
License BSD-3-Clause
Author Daniel Bergey
Category Database, PostgreSQL
Home page
Bug tracker
Source repo head: git clone
Uploaded by bergey at 2021-07-31T18:35:41Z
Downloads 839 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-07-31 [all 1 reports]