fourmolu-0.18.0.0: A formatter for Haskell source code
Safe HaskellNone
LanguageGHC2021

Ormolu.Printer.Meat.Type

Description

Rendering of types.

Synopsis

Documentation

startTypeAnnotation :: HasLoc l => GenLocated l a -> (a -> R ()) -> R () Source #

startTypeAnnotationDecl :: HasLoc l => GenLocated l a -> (a -> HsType GhcPs) -> (a -> R ()) -> 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' :: (Outputable (GenLocated (Anno a) a), 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_hsQualArrow :: Choice "multiline" -> R () Source #

p_hsFun :: HasLoc l => Choice "multiline" -> (a -> R ()) -> HsArrowOf (GenLocated l a) GhcPs -> GenLocated l a -> R () Source #