on master help sign in
Minor tweaks.

--HG-- extra : convert_revision : bf8c7f25af498493aca13f825b5bd34306ba1025

commit7a617d4993bbcc3b74786f05228cddea57402fd2 authorBryan O'Sullivan <bos@serpentine.com> dateSun 22 Feb 2009, 22:56 (18 years ago) parentd3c8aea
1 file changed+2−1
Data/Text.hs+2−1
Data/Text.hs+2−1
@@ -278,10 +278,11 @@ head t = S.head (stream t)
278278uncons :: Text -> Maybe (Char, Text)
279279uncons t@(Text arr off len)
280280 | len <= 0 = Nothing
281− | otherwise = Just (c, Text arr (off+d) (len-d))
281+ | otherwise = Just (c, textP arr (off+d) (len-d))
282282 where (c,d) = iter t 0
283283{-# INLINE uncons #-}
284284
285+-- | Lifted from Control.Arrow and specialized.
285286second :: (b -> c) -> (a,b) -> (a,c)
286287second f (a, b) = (a, f b)
287288