on master help sign in
Twiddle append

--HG-- extra : convert_revision : 1044422f00af5fa845f110df2ca7eeb6d179e736

commit6ec2765dd55c1777f45dd0999a6df683cc6bf4b1 authorBryan O'Sullivan <bos@serpentine.com> dateSun 1 Mar 2009, 06:51 (18 years ago) parent37ab912
1 file changed+3−2
Data/Text/Lazy.hs+3−2
Data/Text/Lazy.hs+3−2
@@ -222,10 +222,11 @@ snoc t c = foldrChunks Chunk (singleton c) t
222222 unstream (S.snoc (stream t) c) = snoc t c
223223 #-}
224224
225−-- | /O(n\/c)/ Append two 'Text's
225+-- | /O(n\/c)/ Appends one 'Text' to another. Subject to array
226+-- fusion.
226227append :: Text -> Text -> Text
227228append xs ys = foldrChunks Chunk ys xs
228−{-# INLINE append #-}
229+{-# INLINE [1] append #-}
229230
230231{-# RULES
231232"LAZY TEXT append -> fused" [~1] forall t1 t2.