microlens-ghc-0.4.1.0: microlens + array, bytestring, containers, transformers

Safe HaskellUnsafe
LanguageHaskell2010

Lens.Micro.GHC.Internal

Contents

Synopsis

Documentation

class IsByteString t where Source

Methods

packedBytes :: Lens' [Word8] t Source

Treat a list of bytes as a strict or lazy ByteString.

unpackedBytes :: Lens' t [Word8] Source

Treat a strict or lazy ByteString as a list of bytes.

packedChars :: Lens' String t Source

Treat a String as a strict or lazy ByteString. (Note that it will garble characters above 0xFF, same as pack does.)

unpackedChars :: Lens' t String Source

Treat a strict or lazy ByteString as a String. (Just as packedChars, it will garble characters above 0xFF.)

chars :: Traversal' t Char Source

Traverse characters in a strict or lazy ByteString (to traverse bytes instead of characters, use each).

Unpacking bytestrings

Converting bytestrings between strict and lazy

Traversing bytestrings