add strictness functions documentation
This commit is contained in:
@@ -57,6 +57,29 @@ decodeUtf8' :: ByteString -> Either UnicodeException Text
|
|||||||
decodeUtf8With :: OnDecodeError -> ByteString -> 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
|
Conversion
|
||||||
----------
|
----------
|
||||||
|
|
||||||
@@ -67,10 +90,14 @@ class StringConv a b where
|
|||||||
data Leniency = Lenient | Strict
|
data Leniency = Lenient | Strict
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### toS
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
toS :: StringConv a b => a -> b
|
toS :: StringConv a b => a -> b
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### toSL
|
||||||
|
|
||||||
```haskell
|
```haskell
|
||||||
toSL :: StringConv a b => a -> b
|
toSL :: StringConv a b => a -> b
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user