HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelens-5.3.5Haskell2010

Control.Lens.Reified

  • 20 types
  • Packagelens-5.3.5
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-2-Clause
  • SourceReified.hs
Example2 expressions
import Control.Lensimport Control.Applicative
newtypenewtype ReifiedGetter s a
#

Reify a Getter so it can be stored safely in a container.

This can also be useful when combining getters in novel ways, as ReifiedGetter is isomorphic to (->) and provides similar instances.

Example1 expression
("hello","world","!!!")^.runGetter ((,) <$> Getter _2 <*> Getter (_1.to length))("world",5)

Constructors

Instances27Arrow, ArrowApply, ArrowChoice, ArrowLoop, Choice, Closed, …
newtypenewtype ReifiedIndexedGetter i s a
#

Reify an IndexedGetter so it can be stored safely in a container.

Instances7Strong, Profunctor, Representable, Sieve, Functor, Apply, …
newtypenewtype ReifiedFold s a
#

Reify a Fold so it can be stored safely in a container.

This can also be useful for creatively combining folds as ReifiedFold s is isomorphic to ReaderT s [] and provides similar instances.

Example1 expression
("hello","world")^..runFold ((,) <$> Fold _2 <*> Fold both)[("world","hello"),("world","world")]

Constructors

Instances22Arrow, ArrowApply, ArrowChoice, Choice, Strong, Profunctor, …
newtypenewtype ReifiedIndexedFold i s a
#
Instances10Strong, Profunctor, Representable, Sieve, Functor, Alt, …
newtypenewtype ReifiedIso s t a b
#

Reify an Iso so it can be stored safely in a container.

Constructors