HXQ is a fast and space-efficient compiler from XQuery (the standard
query language for XML) to embedded Haskell code. The translation is
based on Haskell templates. It also provides an interpreter for
evaluating XQueries from input and an optional database connectivity
using HDBC with MySQL/ODBC or sqlite3.