ormolu-0.1.2.0: A formatter for Haskell source code

Safe Haskell | None
Language | Haskell2010

Ormolu.Printer.Meat.Type

Description

Rendering of types.

Synopsis

- p_hsType :: HsType GhcPs -> R ()
- p_hsTypePostDoc :: HsType GhcPs -> R ()
- hasDocStrings :: HsType GhcPs -> Bool
- p_hsContext :: HsContext GhcPs -> R ()
- p_hsTyVarBndr :: HsTyVarBndr GhcPs -> R ()
- p_forallBndrs :: Data a => ForallVisFlag -> (a -> R ()) -> [Located a] -> R ()
- p_conDeclFields :: [LConDeclField GhcPs] -> R ()
- tyVarsToTypes :: LHsQTyVars GhcPs -> [LHsType GhcPs]

# Documentation

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

p_hsTypePostDoc :: 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_hsTyVarBndr :: HsTyVarBndr GhcPs -> R () Source #

p_forallBndrs :: Data a => ForallVisFlag -> (a -> R ()) -> [Located a] -> R () Source #

Render several `forall`-ed variables.

p_conDeclFields :: [LConDeclField GhcPs] -> R () Source #

tyVarsToTypes :: LHsQTyVars GhcPs -> [LHsType GhcPs] Source #