on master help sign in
Check the lazy text invariant after splitting

--HG-- extra : convert_revision : 71c41a5d4b1947226c31a71c17e3a934c3820382

commita837edaa4c6eb1e468edd05023010e66393616ad authorBryan O'Sullivan <bos@serpentine.com> dateSun 29 Aug 2010, 18:24 (16 years ago) parent5e1d5c9
1 file changed+2−1
tests/Properties.hs+2−1
tests/Properties.hs+2−1
@@ -136,7 +136,8 @@ instance Stringy TL.Text where
136136 packSChunkSize k = SL.unstreamChunks k . S.streamList
137137 packS = TL.pack
138138 unpackS = TL.unpack
139− splitAtS = TL.splitAt . fromIntegral
139+ splitAtS = ((TL.lazyInvariant *** TL.lazyInvariant) .) .
140+ TL.splitAt . fromIntegral
140141
141142-- Do two functions give the same answer?
142143eq :: (Eq a, Show a) => (t -> a) -> (t -> a) -> t -> Bool