Hoogle Search

Within LTS Haskell 24.66 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

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

    optics-th Optics.TH

    Construct a LensRules value for generating LabelOptic instances using the given map from field names to definition names.

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

    optics-th Optics.TH

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

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

    optics-th Optics.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
    

  4. makeFieldLabelsFor :: [(String, String)] -> Name -> DecsQ

    optics-th Optics.TH

    Derive field optics as labels, specifying explicit pairings of (fieldName, labelName). If you map multiple fields to the same label and it is present in the same constructor, Traversal (or Fold for a read only version) will be generated. e.g.

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

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

    optics-th Optics.TH

    Derive field optics, specifying explicit pairings of (fieldName, opticName). If you map multiple fields to the same optic and it is present in the same constructor, Traversal (or Fold for a read only version) will be generated. e.g.

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

  6. makeFieldLabelsForDec :: LensRules -> Dec -> DecsQ

    optics-th Optics.TH.Internal.Product

    No documentation available.

  7. makeFieldOpticsForDec :: LensRules -> Dec -> DecsQ

    optics-th Optics.TH.Internal.Product

    No documentation available.

  8. makeFieldOpticsForDec' :: LensRules -> Dec -> HasFieldClasses [Dec]

    optics-th Optics.TH.Internal.Product

    No documentation available.

  9. requireExtensionsForFields :: Q ()

    optics-th Optics.TH.Internal.Utils

    No documentation available.

  10. requireExtensionsForLabels :: Q ()

    optics-th Optics.TH.Internal.Utils

    No documentation available.

Page 1305 of many | Previous | Next