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

Copyright | (c) Andrea Rossato
License | BSD-style (see LICENSE)
Maintainer | Andrea Rossato <andrea.rossato@unitn.it>
Stability | unstable
Portability | unportable
Safe Haskell | None
Language | Haskell98

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

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

parseCSL :: String -> IO Style

Parse a `String` into a fully localized `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

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)]