blob: a8e6234080b0d78efb3ccc2abf36fe8d370fac40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
module Data.Text.Encoding.Extra where
import Data.ByteString (ByteString)
import Data.Text (Text)
import qualified Data.Text.Encoding as Text
import qualified Data.Text.Encoding.Error as Text
decodeUtf8Lenient :: ByteString -> Text
decodeUtf8Lenient =
Text.decodeUtf8With Text.lenientDecode
|