microlens-platform-0.2.2.0: Feature-complete microlens

Safe HaskellSafe
LanguageHaskell2010

Lens.Micro.Platform.Internal

Documentation

class IsText t where Source

Methods

packed :: Lens' String t Source

packed lets you convert between String and Text (strict or lazy). It can be used as a replacement for pack or as a way to modify some String if you have a function like Text -> Text.

unpacked :: Lens' t String Source

unpacked is like packed but works in the opposite direction.