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.
fieldLabelsRulesFor :: [(String, String)] -> LensRulesoptics-th Optics.TH Construct a LensRules value for generating LabelOptic instances using the given map from field names to definition names.
lensRulesFor :: [(String, String)] -> LensRulesoptics-th Optics.TH Construct a LensRules value for generating top-level functions using the given map from field names to definition names.
makeClassyFor :: String -> String -> [(String, String)] -> Name -> DecsQoptics-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
makeFieldLabelsFor :: [(String, String)] -> Name -> DecsQoptics-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
makeLensesFor :: [(String, String)] -> Name -> DecsQoptics-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
makeFieldLabelsForDec :: LensRules -> Dec -> DecsQoptics-th Optics.TH.Internal.Product No documentation available.
makeFieldOpticsForDec :: LensRules -> Dec -> DecsQoptics-th Optics.TH.Internal.Product No documentation available.
makeFieldOpticsForDec' :: LensRules -> Dec -> HasFieldClasses [Dec]optics-th Optics.TH.Internal.Product No documentation available.
requireExtensionsForFields :: Q ()optics-th Optics.TH.Internal.Utils No documentation available.
requireExtensionsForLabels :: Q ()optics-th Optics.TH.Internal.Utils No documentation available.