Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- parseStyle :: Monad m => (Text -> m Text) -> Text -> m (Either CiteprocError (Style a))
- mergeLocales :: Maybe Lang -> Style a -> Locale
Documentation
:: Monad m | |
=> (Text -> m Text) | Function that takes a URL and retrieves text of independent parent |
-> Text | Contents of XML stylesheet |
-> m (Either CiteprocError (Style a)) |
Parse an XML stylesheet into a Style
. The first parameter
is a function that retrieves the text of the independent parent
of a dependent style, given a URL. (This might make an HTTP
request or retrieve the style locally.) If you aren't using
dependent styles, you may use `(_ -> return mempty)`.