purescript-0.15.12: PureScript Programming Language Compiler

Safe Haskell | Safe-Inferred
Language | Haskell2010

Language.PureScript.Docs.Render

Description

Functions for creating `RenderedCode` values from data types in Language.PureScript.Docs.Types.

These functions are the ones that are used in markdown/html documentation generation, but the intention is that you are able to supply your own instead if necessary. For example, the Hoogle input file generator substitutes some of these

# Documentation

renderKindSig :: Text -> KindInfo -> RenderedCode #

renderDeclaration :: Declaration -> RenderedCode #

renderChildDeclaration :: ChildDeclaration -> RenderedCode #

renderConstraint :: Constraint' -> RenderedCode #

renderConstraints :: [Constraint'] -> Maybe RenderedCode #

notQualified :: Text -> Qualified (ProperName a) #

ident' :: Text -> RenderedCode #

dataCtor' :: Text -> RenderedCode #

typeApp :: Text -> [(Text, Maybe Type')] -> Type' #

toTypeVar :: (Text, Maybe Type') -> Type' #