Surprisingly, both Data.Text.Internal.Search and Data.Text.Lazy.Search have special cases for searching a single ASCII character, but neither uses memchr, even while the main codepath does, so it is readily accessible.
(See https://discourse.haskell.org/t/blog-5x-speedup-changing-break-to-elemindex/13946 for context)
Surprisingly, both
Data.Text.Internal.SearchandData.Text.Lazy.Searchhave special cases for searching a single ASCII character, but neither usesmemchr, even while the main codepath does, so it is readily accessible.(See https://discourse.haskell.org/t/blog-5x-speedup-changing-break-to-elemindex/13946 for context)