1. Bryan O'Sullivan
  2. text

Commits

Bryan O'Sullivan  committed 079b4b3

Fix comments

  • Participants
  • Parent commits 55ac947
  • Branches default

Comments (0)

Files changed (1)

File Data/Text.hs

View file
  • Ignore whitespace
     -- * Zipping and unzipping
     , zipWith
 
-    -- * Ordered ByteStrings
+    -- * Ordered text
     , -- sort
     ) where
 
 -- | Break a string on a substring, returning a pair of the part of the
 -- string prior to the match, and the rest of the string.
 --
--- The following relationships hold:
+-- The following relationship holds:
 --
--- > break (== c) l == breakSubstring (singleton c) l
---
--- and:
---
--- > findSubstring s l ==
--- >    if null s then Just 0
--- >              else case breakSubstring s l of
--- >                       (x,y) | null y    -> Nothing
--- >                             | otherwise -> Just (length x)
+-- > break (==c) l == breakSubstring (singleton c) l
 --
 -- For example, to tokenise a string, dropping delimiters:
 --