curly-core-0.7.2: The core libraries for the Curly compiler.

Safe HaskellNone
LanguageHaskell2010

Curly.Core.Documentation

Contents

Synopsis

The Documentation format

data DocNode a Source #

A documentation node (similar to a HTML node, but simpler)

Constructors

DocTag String [(String, String)] [a] 

Instances

Functor DocNode Source # 

Methods

map :: (a -> b) -> DocNode a -> DocNode b #

Foldable DocNode Source # 

Methods

fold :: Monoid m => DocNode m -> m #

Traversable DocNode Source # 

Methods

sequence :: Applicative f => DocNode (f a) -> f (DocNode a) #

Serializable Bytes a => Serializable Bytes (DocNode a) Source # 
Format Bytes a => Format Bytes (DocNode a) Source # 

Methods

datum :: Parser Bytes (DocNode a) #

Serializable Bytes a => Serializable Bytes (Free DocNode a) Source # 
Format Bytes a => Format Bytes (Free DocNode a) Source # 

Methods

datum :: Parser Bytes (Free DocNode a) #

Eq a => Eq (DocNode a) Source # 

Methods

(==) :: DocNode a -> DocNode a -> Bool #

(/=) :: DocNode a -> DocNode a -> Bool #

Ord a => Ord (DocNode a) Source # 

Methods

compare :: DocNode a -> DocNode a -> Ordering #

(<) :: DocNode a -> DocNode a -> Bool #

(<=) :: DocNode a -> DocNode a -> Bool #

(>) :: DocNode a -> DocNode a -> Bool #

(>=) :: DocNode a -> DocNode a -> Bool #

max :: DocNode a -> DocNode a -> DocNode a #

min :: DocNode a -> DocNode a -> DocNode a #

Show a => Show (DocNode a) Source # 

Methods

showsPrec :: Int -> DocNode a -> ShowS #

show :: DocNode a -> String #

showList :: [DocNode a] -> ShowS #

Generic (DocNode a) Source # 

Associated Types

type Rep (DocNode a) :: * -> * #

Methods

from :: DocNode a -> Rep (DocNode a) x #

to :: Rep (DocNode a) x -> DocNode a #

Documented a => Documented (Free DocNode a) Source # 
type Rep (DocNode a) Source # 

docNodeSubs :: Lens [a] [b] (DocNode a) (DocNode b) Source #

mkDoc Source #

Arguments

:: String

The root tag name

-> String

Documentation in textual format

-> Documentation 

Rendering documentation

Styles

data TagDisplay Source #

Constructors

Inline 
Block Bool 

Rendering

Metadata

Formatted Strings

class FormatType a where Source #

A base class for the format function

Minimal complete definition

format'

Methods

format' :: String -> String -> a Source #

Instances

FormatType String Source # 
(FormatArg a, FormatType r) => FormatType (a -> r) Source # 

Methods

format' :: String -> String -> a -> r Source #

format :: FormatType r => String -> r Source #

A function that mimics sprintf-style formatting for Haskell