microlens-platform-0.3.1.1: Feature-complete microlens

Copyright(C) 2013-2016 Edward Kmett, 2015-2016 Artyom
LicenseBSD-style (see the file LICENSE)
Safe HaskellTrustworthy
LanguageHaskell2010

Lens.Micro.Platform

Description

This module is an approximation for Control.Lens from lens; by importing it you get all functions and instances from microlens, microlens-mtl, microlens-ghc, as well as the following instances:

Synopsis

Documentation

module Lens.Micro

packed :: IsText t => 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 :: IsText t => Lens' t String Source

unpacked is like packed but works in the opposite direction.