| | 177 | * A call for further discussion on the [http://www.haskell.org/pipermail/libraries/2010-November/014901.html name/type matching issue]. |
| | 178 | |
| | 179 | The package maintainer proposes an updated API. The substring functions are now named: |
| | 180 | {{{ |
| | 181 | breakOn :: Text -> Text -> (Text, Text) |
| | 182 | breakOnEnd :: Text -> Text -> (Text, Text) |
| | 183 | |
| | 184 | breakOnAll :: Text -> Text -> [(Text, Text)] |
| | 185 | splitOn :: Text -> Text -> [Text] |
| | 186 | }}} |
| | 187 | The character predicate functions now match the List names: |
| | 188 | {{{ |
| | 189 | break :: (Char -> Bool) -> Text -> (Text, Text) |
| | 190 | span :: (Char -> Bool) -> Text -> (Text, Text) |
| | 191 | partition :: (Char -> Bool) -> Text -> (Text, Text) |
| | 192 | find :: (Char -> Bool) -> Text -> Maybe Char |
| | 193 | split :: (Char -> Bool) -> Text -> [Text] |
| | 194 | }}} |
| | 195 | The `count` function remains unchanged, but there is the suggestion that the `bytestring` version of `count` could be generalised instead |
| | 196 | {{{ |
| | 197 | count :: Text -> Text -> Int |
| | 198 | }}} |