microlens-platform-0.4.4.1: microlens + all batteries included (best for apps)

Copyright | (C) 2013-2016 Edward Kmett 2015-2016 Artyom Kazak 2018 Monadfix
License | BSD-style (see the file LICENSE)
Safe Haskell | Safe
Language | Haskell2010

Lens.Micro.Platform.Internal

Description

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

#### Instances

Instances details

IsText Text Source # |
Instance details Defined in Lens.Micro.Platform.Internal Methods packed :: Lens' String Text Source # unpacked :: Lens' Text String Source #
IsText Text Source # |
Instance details Defined in Lens.Micro.Platform.Internal Methods packed :: Lens' String Text Source # unpacked :: Lens' Text String Source #
IsText String Source # |
Instance details Defined in Lens.Micro.Platform.Internal Methods packed :: Lens' String String Source # unpacked :: Lens' String String Source #