ormolu
Safe HaskellNone
LanguageGHC2021

Ormolu.Printer.Meat.Type

Description

Rendering of types.

Synopsis

Documentation

p_hsType :: HsType GhcPs -> R () Source #

hasDocStrings :: HsType GhcPs -> Bool Source #

Return True if at least one argument in HsType has a doc string attached to it.

p_hsContext :: HsContext GhcPs -> R () Source #

p_hsContext' :: HasLoc (Anno a) => (a -> R ()) -> [XRec GhcPs a] -> R () Source #

p_hsTyVarBndr :: IsTyVarBndrFlag flag => HsTyVarBndr flag GhcPs -> R () Source #

p_forallBndrs :: HasLoc l => ForAllVisibility -> (a -> R ()) -> [GenLocated l a] -> R () Source #

Render several forall-ed variables.

p_hsConDeclRecFields :: [LHsConDeclRecField GhcPs] -> R () Source #

p_hsConDeclField :: HsConDeclField GhcPs -> R () Source #

This does not print cdf_doc and cdf_multiplicity as there is no single strategy for where to print them (see call sites).

p_hsConDeclFieldWithDoc :: HsConDeclField GhcPs -> R () Source #

p_lhsTypeArg :: LHsTypeArg GhcPs -> R () Source #

p_hsSigType :: HsSigType GhcPs -> R () Source #

p_hsForAllTelescope :: HsForAllTelescope GhcPs -> R () Source #

p_hsOuterTyVarBndrs :: HsOuterTyVarBndrs Specificity GhcPs -> R () Source #

lhsTypeToSigType :: LHsType GhcPs -> LHsSigType GhcPs Source #