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

Add instance for ShortByteString #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ulidtko
Copy link

@ulidtko ulidtko commented May 13, 2024

This fixes #23.

Not sure about the test... please LMK if you want the #ifdef's in test code as well, or any other approach.

Tested on GHC 9.6.4 (only), with bytestring-0.11.5.3:

λ
λλ ➔ mk @ShortByteString "asdf" == mk "aSdF"
True
λ
λλ ➔ mk @ShortByteString "asdf" == mk "aSdF."
False

cc @basvandijk @winterland1989 please review.

ulidtko added 2 commits May 13, 2024 15:36
This definition is compatible as far back as import Data.Semigroup
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 this pull request may close these issues.

CI ByteString is slow
1 participant