The templatepg package

[Tags:library, mit]

TemplatePG provides PostgreSQL access from Haskell via the PostgreSQL protocol. It also provides a higher-level Template Haskell interface. It eliminates a class of runtime errors by checking queries against a PostgreSQL database at compile-time. This also reduces boilerplate code for dealing with query results, as the type and number of result columns are known at compile-time.


Versions 0.1.0, 0.2.2, 0.2.3, 0.2.5, 0.2.6, 0.2.7, 0.2.8
Dependencies base (==4.8.*), binary, bytestring, haskell-src-meta, mtl, network, parsec, regex-compat, regex-posix, template-haskell, time, utf8-string [details]
License MIT
Copyright 2010, 2011, 2012, 2013, 2015 Chris Forno
Author Chris Forno (jekor)
Stability alpha
Category Database
Home page
Bug tracker
Source repository head: git clone git://
Uploaded Mon Dec 21 14:06:54 UTC 2015 by ChrisForno
Distributions NixOS:0.2.8
Downloads 1111 total (15 in the last 30 days)
0 []
Status Docs pending
Build status unknown [no reports yet]


  • Database
    • Database.TemplatePG
      • Database.TemplatePG.Protocol
      • Database.TemplatePG.SQL
      • Database.TemplatePG.Types


Maintainer's Corner

For package maintainers and hackage trustees