Safe Haskell | None |
---|---|
Language | Haskell2010 |
Rendering of commonly useful bits.
Synopsis
- data FamilyStyle
- = Associated
- | Free
- p_hsmodName :: ModuleName -> R ()
- p_ieWrappedName :: IEWrappedName RdrName -> R ()
- p_rdrName :: Located RdrName -> R ()
- doesNotNeedExtraParens :: RdrName -> Bool
- p_qualName :: ModuleName -> OccName -> R ()
- p_infixDefHelper :: Bool -> Bool -> R () -> [R ()] -> R ()
- p_hsDocString :: HaddockStyle -> Bool -> LHsDocString -> R ()
- p_sourceText :: SourceText -> R ()
Documentation
data FamilyStyle Source #
Data and type family style.
Associated | Declarations in type classes |
Free | Top-level declarations |
p_hsmodName :: ModuleName -> R () Source #
p_ieWrappedName :: IEWrappedName RdrName -> R () Source #
doesNotNeedExtraParens :: RdrName -> Bool Source #
Whether given name should not have parentheses around it. This is used to detect e.g. tuples for which annotations will indicate parentheses, but the parentheses are already part of the symbol, so no extra layer of parentheses should be added. It also detects the [] literal.
p_qualName :: ModuleName -> OccName -> R () Source #
:: Bool | Whether to format in infix style |
-> Bool | Whether to bump indentation for arguments |
-> R () | How to print the operator/name |
-> [R ()] | How to print the arguments |
-> R () |
A helper for formatting infix constructions in lhs of definitions.
:: HaddockStyle | Haddock style |
-> Bool | Finish the doc string with a newline |
-> LHsDocString | The doc string to render |
-> R () |
Print a Haddock.
p_sourceText :: SourceText -> R () Source #