Copyright | (C) 2013-2016 Edward Kmett 2015-2016 Artyom Kazak 2018 Monadfix |
---|---|
License | BSD-style (see the file LICENSE) |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
By importing this module you get all functions and types from microlens, as well as the following instances:
Synopsis
- module Lens.Micro
- packedBytes :: IsByteString t => Lens' [Word8] t
- unpackedBytes :: IsByteString t => Lens' t [Word8]
- packedChars :: IsByteString t => Lens' String t
- unpackedChars :: IsByteString t => Lens' t String
- chars :: IsByteString t => Traversal' t Char
Documentation
module Lens.Micro
packedBytes :: IsByteString t => Lens' [Word8] t Source #
Treat a list of bytes as a strict or lazy ByteString
.
unpackedBytes :: IsByteString t => Lens' t [Word8] Source #
Treat a strict or lazy ByteString
as a list of bytes.
packedChars :: IsByteString t => Lens' String t Source #
unpackedChars :: IsByteString t => Lens' t String Source #
Treat a strict or lazy ByteString
as a String
. (Just as packedChars
, it will garble characters above 0xFF.)
chars :: IsByteString t => Traversal' t Char Source #
Traverse characters in a strict or lazy ByteString
(to traverse bytes instead of characters, use each
).