@@ -35,6 +35,7 @@ module Streamly.Benchmark.FileIO.Stream
35 , wordsUnwordsCopy
35 , wordsUnwordsCopy
36 , copyCodecChar8
36 , copyCodecChar8
37 , copyCodecUtf8
37 , copyCodecUtf8
38+ , copyCodecUtf8Lenient
38 , chunksOf
39 , chunksOf
39 , chunksOfD
40 , chunksOfD
@@ -217,6 +218,22 @@ inspect $ hasNoTypeClasses 'copyCodecUtf8
217-- inspect $ 'copyCodecUtf8 `hasNoType` ''D.ConcatMapUState
218-- inspect $ 'copyCodecUtf8 `hasNoType` ''D.ConcatMapUState
222+{-# INLINE copyCodecUtf8Lenient #-}
223+copyCodecUtf8Lenient :: Handle -> Handle -> IO ()
224+copyCodecUtf8Lenient inh outh =
225+ S.runFold (FH.write outh)
227+ $ SS.decodeUtf8Lenient
231+inspect $ hasNoTypeClasses 'copyCodecUtf8Lenient
232+-- inspect $ 'copyCodecUtf8Lenient `hasNoType` ''Step
233+-- inspect $ 'copyCodecUtf8Lenient `hasNoType` ''AT.FlattenState
234+-- inspect $ 'copyCodecUtf8Lenient `hasNoType` ''D.ConcatMapUState
220-- | Slice in chunks of size n and get the count of chunks.
237-- | Slice in chunks of size n and get the count of chunks.
221{-# INLINE chunksOf #-}
238{-# INLINE chunksOf #-}
222chunksOf :: Int -> Handle -> IO Int
239chunksOf :: Int -> Handle -> IO Int