Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Util.Doc

Description

Utilities for the Doc type.

Synopsis

Documentation

newtype Doc Source #

This is for documentation text. It can contain some simple markdown-like formatting, which may be either be printed directly, or formatted via html_doc.

Constructors

Doc Text 

Instances

Instances details
String.IsString Doc Source # 
Instance details

Defined in Util.Doc

Monoid Doc Source # 
Instance details

Defined in Util.Doc

Methods

mempty :: Doc #

mappend :: Doc -> Doc -> Doc #

mconcat :: [Doc] -> Doc #

Semigroup Doc Source # 
Instance details

Defined in Util.Doc

Methods

(<>) :: Doc -> Doc -> Doc #

sconcat :: NonEmpty Doc -> Doc #

stimes :: Integral b => b -> Doc -> Doc #

Show Doc Source # 
Instance details

Defined in Util.Doc

Methods

showsPrec :: Int -> Doc -> ShowS #

show :: Doc -> String.String #

showList :: [Doc] -> ShowS #

Eq Doc Source # 
Instance details

Defined in Util.Doc

Methods

(==) :: Doc -> Doc -> Bool #

(/=) :: Doc -> Doc -> Bool #

Ord Doc Source # 
Instance details

Defined in Util.Doc

Methods

compare :: Doc -> Doc -> Ordering #

(<) :: Doc -> Doc -> Bool #

(<=) :: Doc -> Doc -> Bool #

(>) :: Doc -> Doc -> Bool #

(>=) :: Doc -> Doc -> Bool #

max :: Doc -> Doc -> Doc #

min :: Doc -> Doc -> Doc #

Pretty.Pretty Doc Source # 
Instance details

Defined in Util.Doc

Serialize.Serialize Doc Source # 
Instance details

Defined in Util.Doc

Texts.Textlike Doc Source # 
Instance details

Defined in Util.Doc

pretty :: Pretty.Pretty a => a -> Doc Source #

This probably doesn't belong here, but it's useful in the same contexts as Doc.