{"@context":"https://w3id.org/codemeta/3.0","@type":"SoftwareSourceCode","identifier":"pkg:hackage/hasql","name":"hasql","description":"Root of the \"hasql\" ecosystem.\nThis library provides connection management, execution of queries and mapping of parameters and results.\nExtended functionality such as pooling, transactions and compile-time checking of SQL is provided by extension libraries.\nFor more details and tutorials see the readme.\n\nAll error-reporting is explicit:\ndatabase, protocol and connection failures are reported via the Either type\ninstead of being thrown as exceptions.\n\nThe transport layer is pluggable via pqi,\nso \"hasql\" itself carries no C dependency.\nTo compile an application you need to depend on \"hasql\" together with one adapter package\nand pass that adapter to Hasql.Connection.acquire as its first argument.\nTwo adapters are available:\n\npqi-ffi -\n  the stable, production-proven adapter, backed by the C \"libpq\" library.\n  It requires \"libpq\" of at least version 14 to be installed to compile.\n  \"libpq\" comes distributed with PostgreSQL,\n  so typically all you need is just to install the latest PostgreSQL distro.\n  Via this adapter \"hasql\" is thoroughly tested to be compatible\n  with a wide range of PostgreSQL servers starting from version 9.\n\npqi-native -\n  a pure-Haskell adapter, which speaks the PostgreSQL wire protocol directly\n  and thus requires no C dependency at all.\n  It is thoroughly tested:\n  pqi-conformance runs it\n  side by side with \"libpq\" on the same inputs and checks that the results agree,\n  and the test-suites of \"hasql\", \"hasql-pool\" and \"hasql-transaction\"\n  run against both adapters.\n  It is still labelled alpha, but is fully interchangeable with \"pqi-ffi\":\n  switching between the two is a one-line change.","version":"1.10.3","softwareVersion":"1.10.3","license":"https://spdx.org/licenses/MIT","codeRepository":"https://github.com/nikita-volkov/hasql","issueTracker":"https://github.com/nikita-volkov/hasql/issues","url":"https://github.com/nikita-volkov/hasql","keywords":["database","hasql","library","mit","postgresql","Propose Tags"],"programmingLanguage":{"@type":"ComputerLanguage","name":"Haskell"},"maintainer":[{"@type":"Person","name":"NikitaVolkov"}],"author":[{"@type":"Person","name":"NikitaVolkov"}],"copyrightHolder":[{"@type":"Person","name":"NikitaVolkov"}],"dateCreated":"2014-10-27","dateModified":"2026-03-02","datePublished":"2026-03-02","copyrightYear":2014,"downloadUrl":"https://hackage.haskell.org/package/hasql-1.10.3/hasql-1.10.3.tar.gz","applicationCategory":"hackage","runtimePlatform":"hackage","developmentStatus":"active","sameAs":["https://hackage.haskell.org/package/hasql"],"https://www.w3.org/ns/activitystreams#likes":552,"https://forgefed.org/ns#forks":63}