Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate instance declarations: instance Show Builder #60

Open
Vekhir opened this issue Oct 6, 2023 · 0 comments · May be fixed by #61
Open

Duplicate instance declarations: instance Show Builder #60

Vekhir opened this issue Oct 6, 2023 · 0 comments · May be fixed by #61

Comments

@Vekhir
Copy link

Vekhir commented Oct 6, 2023

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.

@Vekhir Vekhir linked a pull request Jan 9, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant