citeproc-hs-0.3.4: A Citation Style Language implementation in Haskell

Portability | unportable
Stability | unstable
Maintainer | Andrea Rossato <andrea.rossato@unitn.it>
Safe Haskell | None

Text.CSL.Parser

Description

The CS Language parsers

Synopsis

- readCSLFile :: FilePath -> IO Style
- readLocaleFile :: String -> IO Locale
- xpStyle :: PU Style
- xpInfo :: PU (Maybe CSInfo)
- xpLocale :: PU Locale
- xpTerms :: PU [TermMap]
- xpMacros :: PU [MacroMap]
- xpCitation :: PU Citation
- xpBibliography :: PU Bibliography
- xpOpt :: String -> PU [Option]
- xpNamesOpt :: PU [Option]
- xpNameFormat :: PU [Option]
- xpNameAttrs :: PU NameAttrs
- xpNameOpt :: PU [Option]
- xpBibOpts :: PU [Option]
- xpCitOpts :: PU [Option]
- xpStyleOpts :: PU [Option]
- xpSort :: PU [Sort]
- xpChoose :: PU Element
- xpMacro :: PU Element
- xpConst :: PU Element
- xpVariable :: PU Element
- xpTerm :: PU Element
- xpNames :: PU Element
- xpShortNames :: PU Element
- xpLabel :: PU Element
- xpSubStitute :: PU Element
- xpGroup :: PU Element
- xpNumber :: PU Element
- xpDate :: PU Element
- xpLocaleDate :: PU Element
- xpTextElem :: PU a -> PU a
- xpDelimiter :: PU String
- xpPlural :: PU Plural
- xpCommon :: (XmlPickler b, XmlPickler c) => String -> PU (String, b, c)
- xpAttrText :: String -> PU String
- xpAttrText' :: String -> PU String
- xpAttrWithDefault :: Eq a => a -> String -> PU a -> PU a
- xpIElemWithDefault :: Eq a => a -> String -> PU a -> PU a
- readable :: (Read a, Show b) => (String -> a, b -> String)
- toShow :: String -> String
- toRead :: String -> String
- langBase :: [(String, String)]

# Documentation

readCSLFile :: FilePath -> IO Style

Read and parse a CSL style file into the internal style representation, the `Style`.

readLocaleFile :: String -> IO Locale

xpStyle :: PU Style

xpInfo :: PU (Maybe CSInfo)

xpLocale :: PU Locale

xpTerms :: PU [TermMap]

xpMacros :: PU [MacroMap]

xpCitation :: PU Citation

xpBibliography :: PU Bibliography

xpOpt :: String -> PU [Option]

xpNamesOpt :: PU [Option]

xpNameFormat :: PU [Option]

xpNameAttrs :: PU NameAttrs

xpNameOpt :: PU [Option]

xpBibOpts :: PU [Option]

xpCitOpts :: PU [Option]

xpStyleOpts :: PU [Option]

xpSort :: PU [Sort]

xpChoose :: PU Element

xpMacro :: PU Element

xpConst :: PU Element

xpVariable :: PU Element

xpTerm :: PU Element

xpNames :: PU Element

xpShortNames :: PU Element

xpLabel :: PU Element

xpSubStitute :: PU Element

xpGroup :: PU Element

xpNumber :: PU Element

xpDate :: PU Element

xpLocaleDate :: PU Element

xpTextElem :: PU a -> PU a

xpDelimiter :: PU String

xpPlural :: PU Plural

xpCommon :: (XmlPickler b, XmlPickler c) => String -> PU (String, b, c)

xpAttrText :: String -> PU String

For mandatory attributes.

xpAttrText' :: String -> PU String

For optional attributes.

xpAttrWithDefault :: Eq a => a -> String -> PU a -> PU a

xpIElemWithDefault :: Eq a => a -> String -> PU a -> PU a

readable :: (Read a, Show b) => (String -> a, b -> String)

toShow :: String -> String

toRead :: String -> String

langBase :: [(String, String)]