hoogle

Hoogle.Type.TagStr

Description

A module representing strings with formatting.

Synopsis

Documentation

data TagStr

Constructors

Str String

Plain text.

Tags [TagStr]

A list of tags one after another.

TagBold TagStr

Bold text.

TagEmph TagStr

Underlined/italic text.

TagLink String TagStr

A hyperlink to a URL.

TagColor Int TagStr

Colored text. Index into a 0-based palette. Text without any TagColor should be black.

tags :: [TagStr] -> TagStr

Smart constructor for Tags

showTagText :: TagStr -> String

Show a TagStr as a string, without any formatting.

showTagANSI :: TagStr -> String

Show a TagStr on a console with ANSI escape sequences.

showTagHTML :: TagStr -> String

Show a TagStr as HTML, using CSS classes for color styling.

showTagHTMLWith :: (TagStr -> Maybe String) -> TagStr -> String

Show TagStr with an override for specific tags.