ghc-lib-0.20220501: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Hs.Syn.Type

Description

Compute the Type of an HsExpr GhcTc in a pure fashion.

Note that this does not currently support the use case of annotating every subexpression in an HsExpr with its Type. For more information on this task, see 15320, 17331.

Synopsis

Extracting types from HsExpr

lhsExprType :: LHsExpr GhcTc -> Type Source #

Compute the Type of an LHsExpr GhcTc in a pure fashion.

hsExprType :: HsExpr GhcTc -> Type Source #

Compute the Type of an HsExpr GhcTc in a pure fashion.

Extracting types from HsSyn