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

Moduledhall-1.42.3Haskell2010

Dhall.Optics

Deprecated. Use the definitions from Lens.Micro of the microlens package directly.

This module contains some useful utilities copy-and-pasted from the lens library to avoid a dependency which are used internally and also re-exported for convenience

  • 2 types
  • 9 values
  • Packagedhall-1.42.3
  • Exports11
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceOptics.hs
typetype Optic (p :: Type -> Type -> Type) (f :: Type -> Type) s t a b = p a (f b) -> p s (f t)
#

Identical to Control.Lens.Type.Optic

Utilities

9 declarations
valueanyOf :: Getting Any s a -> (a -> Bool) -> s -> Bool
#

Identical to Control.Lens.Control.Lens.anyOf

valuerewriteOf :: ASetter a b a b -> (b -> Maybe a) -> a -> b
#

Identical to Control.Lens.Control.Lens.rewriteOf

valuetransformOf :: ASetter a b a b -> (b -> b) -> a -> b
#

Identical to Control.Lens.Control.Lens.transformOf

valueto :: (s -> a) -> SimpleGetter s a
#

Identical to Control.Lens.Getter.to

valuefoldOf :: Getting a s a -> s -> a
#

Identical to Control.Lens.Fold.foldOf