A mid-level MySQL client library.

Version on this page:
LTS Haskell 22.28:0.4.9
Stackage Nightly 2024-07-13:0.4.9
Latest on Hackage:0.4.9

See all snapshots mysql-simple appears in

BSD-3-Clause licensed by Bryan O'Sullivan
Maintained by Paul Rouse
This version can be pinned in stack with:mysql-simple-,1903

mysql-simple: mid-level bindings to the mysqlclient library

This library is a mid-level Haskell binding to the MySQL mysqlclient client library. It is aimed at speed and ease of use.


This library is BSD-licensed under the terms of the MySQL FOSS License Exception.

Since this library links against the GPL-licensed mysqlclient library, a non-open-source application that uses it may be subject to the terms of the GPL.

To do

  • Add support for prepared statements. This API is huge and of dubious performance worth, so it’s not currently a priority for me. Patches welcome!

Get involved!

We are happy to receive bug reports, fixes, documentation enhancements, and other improvements.

Please report bugs via the github issue tracker.

Master git repository:

  • git clone git://

There’s also a Mercurial mirror:

  • hg clone

(You can create and contribute changes using either git or Mercurial.)


This library is written and maintained by Bryan O’Sullivan, [email protected].