HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulealfred-margaret-2.1.1.1GHC2021

Data.Text.BoyerMoore.Replacer

Synopsis
valuereplaceSingleLimited
  1. :: Automaton

    Matches the needles

  2. -> Text

    Replacement string

  3. -> Text

    Haystack

  4. -> CodeUnitIndex

    Maximum number of code units in the returned text

  5. -> Maybe Text

Replace all occurrences matched by the Boyer-Moore automaton with the given replacement text in some haystack. Performs case-sensitive replacement.