make UTF8 decoding lenient
This commit is contained in:
parent
6dc293a4b9
commit
422d7c63d9
@ -1,5 +1,5 @@
|
||||
name: geval
|
||||
version: 0.2.5.0
|
||||
version: 0.2.6.0
|
||||
synopsis: Machine learning evaluation tools
|
||||
description: Please see README.md
|
||||
homepage: http://github.com/name/project
|
||||
|
@ -250,7 +250,7 @@ averageC = getZipSink
|
||||
items :: MonadResource m => String -> (Text -> a) -> Source m (SourceItem a)
|
||||
items filePath parser =
|
||||
(CB.sourceFile filePath
|
||||
$= (CT.decode CT.utf8
|
||||
$= (CT.decodeUtf8Lenient
|
||||
=$= CT.lines
|
||||
=$= CL.map ((\x -> Got x) . parser))) >> yield Done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user