paul-rouse / mysql-simple

A mid-level client library for the MySQL database, intended to be fast and easy to use.
Other
91 stars 35 forks source link

Make it easier to use `mysql-simple` with GHC 9.2 #53

Closed awjchen closed 2 years ago

awjchen commented 2 years ago

This PR replaces uses of the deprecated function Data.Time.Format.parseTime with the equivalent Data.Time.Format.parseTimeM True.

parseTime has been absent from the time package since time-1.10. With GHC 9.2.1, the version of time used by GHC has been upgraded from time-1.9.3 to time-1.11.1.1, which makes mysql-simple difficult to use with GHC 9.2.1. This PR removes that difficulty.

paul-rouse commented 2 years ago

Thanks for this - and sorry it has taken me a couple of weeks to look at it!