HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulemicrolens-th-0.4.3.18Haskell2010

Lens.Micro.TH.Internal

Functions used by Lens.Micro.TH. This is an internal module and it may go away or change at any time; do not depend on it.

Contents
  1. Name utilities
  2. Type variable utilities
  3. Miscellaneous utilities
  4. Lens functions
Synopsis

Name utilities

classclass HasName t where

Has a Name

Methods

Instances3HasName
  • HasName ConDefined in microlens-th-0.4.3.18 · Lens.Micro.TH.Internal

    On template-haskell-2.11.0.0 or later, if a GadtC or RecGadtC has multiple Names, the leftmost Name will be chosen.

  • HasName NameDefined in microlens-th-0.4.3.18 · Lens.Micro.TH.Internal
  • HasName (TyVarBndr_ flag)Defined in microlens-th-0.4.3.18 · Lens.Micro.TH.Internal

Type variable utilities

classclass HasTypeVars t where

Provides for the extraction of free type variables, and alpha renaming.

Instances6HasTypeVars

Miscellaneous utilities

valuequantifyType :: Cxt -> Type -> Type

Template Haskell wants type variables declared in a forall, so we find all free type variables in a given type and declare them.

Lens functions