add strictness functions documentation

This commit is contained in:
Stephen Diehl
2017-03-11 09:59:58 +00:00
parent 5866877d3f
commit 8ad2522cda
+27
View File
@@ -57,6 +57,29 @@ decodeUtf8' :: ByteString -> Either UnicodeException Text
decodeUtf8With :: OnDecodeError -> ByteString -> Text
```
#### UnicodeException
```haskell
data UnicodeException
= DecodeError [Char] (Maybe Word8)
| EncodeError [Char] (Maybe Char)
```
Strictness
----------
#### fromStrict
```haskell
fromStrict :: Text -> LText
```
#### toStrict
```haskell
toStrict :: LText -> Text
```
Conversion
----------
@@ -67,10 +90,14 @@ class StringConv a b where
data Leniency = Lenient | Strict
```
#### toS
```haskell
toS :: StringConv a b => a -> b
```
#### toSL
```haskell
toSL :: StringConv a b => a -> b
```