-
Notifications
You must be signed in to change notification settings - Fork 141
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
Lazy variants of isInfixOf and breakSubstring #30
Comments
Exported isSuffixOf. We lack implementations of isInfixOf and breakSubstring. We should probably get them from the |
The relevant part of |
What's the blocker here? I've just ran into this. |
@ribosomerocker No blockers, PRs welcome. |
Am I correct in assuming that this depends on #307 ? |
Not necessarily: it's likely better to have at least some (non-pathological) |
Hi, I am trying to add a lazy variant of |
@Equwece you can use https://hackage.haskell.org/package/base-4.18.0.0/docs/Data-Array-Byte.html and low-level operations like https://hackage.haskell.org/package/base-4.18.0.0/docs/GHC-Exts.html#v:readIntArray-35-. You might end up implementing a small module with helper functions similar in spirit to https://hackage.haskell.org/package/text-2.0.2/docs/Data-Text-Array.html. That said, I'd prototype with |
I've been recently hit by the absense of lazy A lazy way to implement |
Sorry for the lack of progress on the task, I have implemented a lazy variant of |
isSuffixOf
available inData.ByteString.Lazy
, but not inData.ByteString.Lazy.Char8
(it's commented out). LikewiseisInfixOf
is not availableData.ByteString.Lazy
.Similarly, there's no lazy version of
breakSubstring
Is there any reason for this?
The text was updated successfully, but these errors were encountered: