HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Tc.Gen.Head

  • 5 types
  • 22 values
  • Packageghc-9.14.1
  • Exports27
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceHead.hs
datadata HsExprArg (p :: TcPass) where
#
Instances1Outputable
valuerebuildHsApps
  1. :: (HsExpr GhcTc, AppCtxt)

    the function being applied

  2. -> [HsExprArg 'TcpTc]

    the arguments to the function

  3. -> HsExpr GhcTc
#

Rebuild an application: takes a type-checked application head expression together with arguments in the form of typechecked HsExprArgs and returns a typechecked application of the head to the arguments.

This performs a representation-polymorphism check to ensure that representation-polymorphic unlifted newtypes have been eta-expanded.

See Note [Eta-expanding rep-poly unlifted newtypes].