diff options
-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; |