Safe Haskell | None |
---|---|
Language | Haskell2010 |
- genValidUtf8 :: Gen Text
- utf8BS :: Gen ByteString
- genValidUtf81 :: Gen Text
- utf8BS1 :: Gen ByteString
- oneByte :: Gen ByteString
- twoByte :: Gen ByteString
- threeByte :: Gen ByteString
Documentation
genValidUtf8 :: Gen Text Source
Generate a possibly-empty valid UTF-8 Text
value.
utf8BS :: Gen ByteString Source
Generate a possibly-empty sequence of bytes which represent a valid UTF-8 code point.
genValidUtf81 :: Gen Text Source
Like genValidUtf8
, but does not allow empty Text
values.
utf8BS1 :: Gen ByteString Source
Like utf8BS
, but does not allow empty ByteString
s.
Generators for single characters
oneByte :: Gen ByteString Source
Single-byte UTF-8 (i.e., a standard ASCII byte with a cleared MSB).