diff options
author | michaelt <what_is_it_to_do_anything@yahoo.com> | 2014-01-26 09:49:29 -0500 |
---|---|---|
committer | michaelt <what_is_it_to_do_anything@yahoo.com> | 2014-01-26 09:49:29 -0500 |
commit | b0d86a59271dbb20a092ca359860a0efe76a849d (patch) | |
tree | ffe1f4005b79b2c0cd20bf0431f40fb1c6ccf809 /Pipes | |
parent | 0f8c6f1bac4b42f7e20b33e78b61ed004758a04a (diff) | |
download | text-pipes-b0d86a59271dbb20a092ca359860a0efe76a849d.tar.gz text-pipes-b0d86a59271dbb20a092ca359860a0efe76a849d.tar.zst text-pipes-b0d86a59271dbb20a092ca359860a0efe76a849d.zip |
stripStart missed a bit
Diffstat (limited to 'Pipes')
-rw-r--r-- | Pipes/Text.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Pipes/Text.hs b/Pipes/Text.hs index cd63742..396633a 100644 --- a/Pipes/Text.hs +++ b/Pipes/Text.hs | |||
@@ -389,8 +389,8 @@ unpack = for cat (\t -> yield (T.unpack t)) | |||
389 | p >-> unpack = for p (\txt -> yield (T.unpack txt)) | 389 | p >-> unpack = for p (\txt -> yield (T.unpack txt)) |
390 | #-} | 390 | #-} |
391 | 391 | ||
392 | -- | @toCaseFold@, @toLower@, @toUpper@ and @stripStart@ are standard 'Text' utility, | 392 | -- | @toCaseFold@, @toLower@, @toUpper@ and @stripStart@ are standard 'Text' utilities, |
393 | -- here acting on a 'Text' pipe, rather as they would on a lazy text | 393 | -- here acting as 'Text' pipes, rather as they would on a lazy text |
394 | toCaseFold :: Monad m => Pipe Text Text m () | 394 | toCaseFold :: Monad m => Pipe Text Text m () |
395 | toCaseFold = P.map T.toCaseFold | 395 | toCaseFold = P.map T.toCaseFold |
396 | {-# INLINEABLE toCaseFold #-} | 396 | {-# INLINEABLE toCaseFold #-} |
@@ -425,7 +425,8 @@ stripStart = do | |||
425 | let text = T.stripStart chunk | 425 | let text = T.stripStart chunk |
426 | if T.null text | 426 | if T.null text |
427 | then stripStart | 427 | then stripStart |
428 | else cat | 428 | else do yield text |
429 | cat | ||
429 | {-# INLINEABLE stripStart #-} | 430 | {-# INLINEABLE stripStart #-} |
430 | 431 | ||
431 | -- | @(take n)@ only allows @n@ individual characters to pass; | 432 | -- | @(take n)@ only allows @n@ individual characters to pass; |