export encoding error handlers

This commit is contained in:
Stephen Diehl
2016-12-12 11:14:42 +00:00
parent c692eb03fb
commit 66958def93
2 changed files with 32 additions and 4 deletions
+23 -4
View File
@@ -23,10 +23,29 @@ LBytestring
Encoding
----------
* encodeUtf8
* decodeUtf8
* decodeUtf8'
* decodeUtf8With
#### encodeUtf8
```haskell
encodeUtf8 :: Text -> ByteString
```
#### decodeUtf8
```haskell
decodeUtf8 :: ByteString -> Text
```
#### decodeUtf8'
```haskell
decodeUtf8' :: ByteString -> Text
```
#### decodeUtf8With
```haskell
decodeUtf8With :: Data.Text.Encoding.Error.OnDecodeError -> ByteString -> Text
```
Conversion
----------