Hoogle Search
Within LTS Haskell 24.40 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
lens Control.Lens.Combinators A FieldNamer for classIdFields.
-
lens Control.Lens.Combinators Lift a Lens so it can run under a function (or other corepresentable profunctor).
inside :: Lens s t a b -> Lens (e -> s) (e -> t) (e -> a) (e -> b)
>>> (\x -> (x-1,x+1)) ^. inside _1 $ 5 4
>>> runState (modify (1:) >> modify (2:)) ^. (inside _2) $ [] [2,1]
-
lens Control.Lens.Combinators Generate overloaded field accessors, using exactly the same names as the underlying fields. Intended for use with the NoFieldSelectors and DuplicateRecordFields language extensions. As an example:
data Foo a = Foo { x :: Int, y :: a } newtype Bar = Bar { x :: Char } makeFieldsId ''Foo makeFieldsId ''Barwill create classesclass HasX s a | s -> a where x :: Lens' s a class HasY s a | s -> a where y :: Lens' s a
together with instancesinstance HasX (Foo a) Int instance HasY (Foo a) a where instance HasX Bar Char where
makeFieldsId = makeLensesWith classIdFields
-
lens Control.Lens.Combinators Use a Prism as a kind of first-class pattern.
outside :: Prism s t a b -> Lens (t -> r) (s -> r) (b -> r) (a -> r)
runIdentity :: Identity a -> alens Control.Lens.Combinators No documentation available.
-
lens Control.Lens.Internal.Fold No documentation available.
ReifiedMonoid :: (a -> a -> a) -> a -> ReifiedMonoid alens Control.Lens.Internal.Fold No documentation available.
newtype
AlongsideLeft (f :: Type -> Type) b alens Control.Lens.Internal.Getter No documentation available.
AlongsideLeft :: f (a, b) -> AlongsideLeft (f :: Type -> Type) b alens Control.Lens.Internal.Getter No documentation available.
newtype
AlongsideRight (f :: Type -> Type) a blens Control.Lens.Internal.Getter No documentation available.