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

Duplicate instance declarations: instance Show Builder #60

Open Vekhir opened 11 months ago

Vekhir commented 11 months ago

Hi, since bytestring 0.11.1.0, Data.ByteString.Builder has an instance Show Builder (see also the documentation).

Since test/Common.hs defines its own instance Show Builder, this leads to the following error:

Building test suite 'test' for mysql-simple-0.4.9..
[1 of 4] Compiling Common           ( test/Common.hs, dist/build/test/test-tmp/Common.dyn_o )

test/Common.hs:10:10: error:
    Duplicate instance declarations:
      instance Show Builder -- Defined at test/Common.hs:10:10
      instance Show Builder -- Defined in ‘Data.ByteString.Builder’
   |
10 | instance Show BS.Builder where
   |          ^^^^^^^^^^^^^^^

cc @paul-rouse

Please also make a new release once this is fixed as the Arch packages rely on Hackage for the build process.