citeproc-hs-0.3.9: 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
- parseCSL :: String -> IO Style
- parseCSL' :: ByteString -> IO Style
- readLocaleFile :: String -> IO Locale
- xpStyle :: PU Style
- xpInfo :: PU (Maybe CSInfo)
- xpLocale :: PU Locale
- xpTerms :: PU [CslTerm]
- 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
- 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 Source

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

parseCSL :: String -> IO Style Source

Parse a `String` into a fully localized `Style`

parseCSL' :: ByteString -> IO Style Source

readLocaleFile :: String -> IO Locale Source

xpStyle :: PU Style Source

xpInfo :: PU (Maybe CSInfo)Source

xpLocale :: PU Locale Source

xpTerms :: PU [CslTerm]Source

xpMacros :: PU [MacroMap]Source

xpCitation :: PU Citation Source

xpBibliography :: PU Bibliography Source

xpOpt :: String -> PU [Option]Source

xpNamesOpt :: PU [Option]Source

xpNameFormat :: PU [Option]Source

xpNameAttrs :: PU NameAttrs Source

xpNameOpt :: PU [Option]Source

xpBibOpts :: PU [Option]Source

xpCitOpts :: PU [Option]Source

xpStyleOpts :: PU [Option]Source

xpSort :: PU [Sort]Source

xpChoose :: PU Element Source

xpMacro :: PU Element Source

xpConst :: PU Element Source

xpVariable :: PU Element Source

xpTerm :: PU Element Source

xpNames :: PU Element Source

xpLabel :: PU Element Source

xpSubStitute :: PU Element Source

xpGroup :: PU Element Source

xpNumber :: PU Element Source

xpDate :: PU Element Source

xpLocaleDate :: PU Element Source

xpTextElem :: PU a -> PU aSource

xpDelimiter :: PU String Source

xpPlural :: PU Plural Source

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

xpAttrText :: String -> PU String Source

For mandatory attributes.

xpAttrText' :: String -> PU String Source

For optional attributes.

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

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

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

toShow :: String -> String Source

toRead :: String -> String Source

langBase :: [(String, String)]Source