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.

  1. lensRulesFor :: [(String, String)] -> LensRules

    lens Control.Lens.TH

    Construct a LensRules value for generating top-level definitions using the given map from field names to definition names.

  2. makeClassyFor :: String -> String -> [(String, String)] -> Name -> DecsQ

    lens Control.Lens.TH

    Derive lenses and traversals, using a named wrapper class, and specifying explicit pairings of (fieldName, traversalName). Example usage:

    makeClassyFor "HasFoo" "foo" [("_foo", "fooLens"), ("bar", "lbar")] ''Foo
    

  3. makeLensesFor :: [(String, String)] -> Name -> DecsQ

    lens Control.Lens.TH

    Derive lenses and traversals, specifying explicit pairings of (fieldName, lensName). If you map multiple names to the same label, and it is present in the same constructor then this will generate a Traversal. e.g.

    makeLensesFor [("_foo", "fooLens"), ("baz", "lbaz")] ''Foo
    makeLensesFor [("_barX", "bar"), ("_barY", "bar")] ''Bar
    

  4. iforMOf :: (Indexed i a (WrappedMonad m b) -> s -> WrappedMonad m t) -> s -> (i -> a -> m b) -> m t

    lens Control.Lens.Traversal

    Map each element of a structure targeted by a Lens to a monadic action, evaluate these actions from left to right, and collect the results, with access its position (and the arguments flipped).

    forMOf l a ≡ iforMOf l a . const
    iforMOfflip . imapMOf
    
    iforMOf :: Monad m => IndexedLens i s t a b      -> s -> (i -> a -> m b) -> m t
    iforMOf :: Monad m => IndexedTraversal i s t a b -> s -> (i -> a -> m b) -> m t
    

  5. iforOf :: (Indexed i a (f b) -> s -> f t) -> s -> (i -> a -> f b) -> f t

    lens Control.Lens.Traversal

    Traverse with an index (and the arguments flipped).

    forOf l a ≡ iforOf l a . const
    iforOfflip . itraverseOf
    
    iforOf :: Functor f     => IndexedLens i s t a b       -> s -> (i -> a -> f b) -> f t
    iforOf :: Applicative f => IndexedTraversal i s t a b  -> s -> (i -> a -> f b) -> f t
    iforOf :: Apply f       => IndexedTraversal1 i s t a b -> s -> (i -> a -> f b) -> f t
    

  6. _BeforePhase :: Prism' Phases Int

    lens Language.Haskell.TH.Lens

    No documentation available.

  7. _ForallC :: Prism' Con ([TyVarBndrSpec], Cxt, Con)

    lens Language.Haskell.TH.Lens

    No documentation available.

  8. _ForallT :: Prism' Type ([TyVarBndrSpec], Cxt, Type)

    lens Language.Haskell.TH.Lens

    No documentation available.

  9. _ForallVisT :: Prism' Type ([TyVarBndrUnit], Type)

    lens Language.Haskell.TH.Lens

    No documentation available.

  10. _ForeignD :: Prism' Dec Foreign

    lens Language.Haskell.TH.Lens

    No documentation available.

Page 419 of many | Previous | Next