summaryrefslogtreecommitdiffstats
path: root/lib/Data
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-02-07 02:30:41 +0100
committertv <tv@krebsco.de>2023-02-07 02:30:41 +0100
commitf28825e471e206bcb7e6dc8e4874c2b771f7d24c (patch)
treec77f0bc9dd178c74f883f0c89d0ebd67366d381b /lib/Data
parent3bd9c00812d91ade512e71a9f8e0f5b8917c3fa7 (diff)
move Graphics.* & co. to lib
Diffstat (limited to 'lib/Data')
-rw-r--r--lib/Data/Text/Encoding/Extra.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Data/Text/Encoding/Extra.hs b/lib/Data/Text/Encoding/Extra.hs
new file mode 100644
index 0000000..a8e6234
--- /dev/null
+++ b/lib/Data/Text/Encoding/Extra.hs
@@ -0,0 +1,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