Hedsql is a EDSL (Embedded Domain-Specific Language) written in Haskell for SQL.
It allows to create SQL statements in a compact, modular and flexible way. Outputs are strings. It means that Hedsql can be used with in any database access library such as HDBC, [x]-simple, etc.
Take a look at the GitHub Wiki for a quick start and examples.