microlens-ghc-0.4.12: microlens + array, bytestring, containers, transformers
Copyright(C) 2013-2016 Edward Kmett 2015-2016 Artyom Kazak 2018 Monadfix
LicenseBSD-style (see the file LICENSE)
Safe HaskellTrustworthy
LanguageHaskell2010

Lens.Micro.GHC.Internal

Description

 
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).

Instances

Instances details
IsByteString ByteString Source # 
Instance details

Defined in Lens.Micro.GHC.Internal

Methods

packedBytes :: Lens' [Word8] ByteString Source #

unpackedBytes :: Lens' ByteString [Word8] Source #

packedChars :: Lens' String ByteString Source #

unpackedChars :: Lens' ByteString String Source #

chars :: Traversal' ByteString Char Source #

IsByteString ByteString Source # 
Instance details

Defined in Lens.Micro.GHC.Internal

Methods

packedBytes :: Lens' [Word8] ByteString Source #

unpackedBytes :: Lens' ByteString [Word8] Source #

packedChars :: Lens' String ByteString Source #

unpackedChars :: Lens' ByteString String Source #

chars :: Traversal' ByteString Char Source #

Unpacking bytestrings

unpackStrict :: ByteString -> [Word8] Source #

unpackStrict8 :: ByteString -> String Source #

unpackLazy :: ByteString -> [Word8] Source #

unpackLazy8 :: ByteString -> String Source #

Converting bytestrings between strict and lazy

fromStrict :: ByteString -> ByteString Source #

toStrict :: ByteString -> ByteString Source #

Traversing bytestrings

traversedLazy :: Traversal' ByteString Word8 Source #

traversedLazy8 :: Traversal' ByteString Char Source #