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

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

Text.CSL.Input.MODS

Description

An ugly MODS parser

Synopsis

- readModsFile :: FilePath -> IO Reference
- readModsCollectionFile :: FilePath -> IO [Reference]
- xpModsCollection :: PU [Reference]
- xpMods :: PU Reference
- xpReference :: PU Reference
- xpCiteKey :: PU String
- xpOrigin :: PU ([RefDate], [Agent], String)
- xpRefType :: PU RefType
- xpRefType' :: PU RefType
- xpGenre :: PU [String]
- xpRelatedItem :: PU Reference
- xpTitle :: PU String
- xpAgents :: PU (([Agent], [Agent], [Agent]), ([Agent], [Agent], [Agent]), ([Agent], [Agent]))
- xpAgent :: String -> String -> PU [Agent]
- parseName :: [String] -> String -> Agent
- xpNameData :: PU ([String], String)
- xpPart :: PU (([RefDate], String, String, String), (String, String, String))
- data Detail
  - = Date [RefDate]
  - | Page String
  - | Volume String
  - | Issue String
  - | Number String
  - | ChapterNr String
  - | Section String
- xpDetail :: PU Detail
- xpPage :: PU String
- xpUrl :: PU ([RefDate], String)
- xpIsbn :: PU String
- xpDoi :: PU String
- xpIdentifier :: String -> PU String
- xpNote :: PU String
- readDate :: String -> [RefDate]
- emptyAgents :: [Agent]

# Documentation

readModsFile :: FilePath -> IO Reference

Read a file with a single MODS record.

readModsCollectionFile :: FilePath -> IO [Reference]

Read a file with a collection of MODS records.

xpModsCollection :: PU [Reference]

xpMods :: PU Reference

xpReference :: PU Reference

xpCiteKey :: PU String

xpOrigin :: PU ([RefDate], [Agent], String)

xpRefType :: PU RefType

xpRefType' :: PU RefType

xpGenre :: PU [String]

xpRelatedItem :: PU Reference

xpTitle :: PU String

xpAgents :: PU (([Agent], [Agent], [Agent]), ([Agent], [Agent], [Agent]), ([Agent], [Agent]))

xpAgent :: String -> String -> PU [Agent]

parseName :: [String] -> String -> Agent

von Hicks,! Jr., Michael or la Martine,! III, Martin B. de or Rossato, Jr., Andrea G. B. or Paul, III, Juan.

xpNameData :: PU ([String], String)

xpPart :: PU (([RefDate], String, String, String), (String, String, String))

data Detail

Constructors

Date [RefDate] |
Page String |
Volume String |
Issue String |
Number String |
ChapterNr String |
Section String |

Instances

Eq Detail |
Show Detail |

xpDetail :: PU Detail

xpPage :: PU String

xpUrl :: PU ([RefDate], String)

xpIsbn :: PU String

xpDoi :: PU String

xpIdentifier :: String -> PU String

xpNote :: PU String

readDate :: String -> [RefDate]

emptyAgents :: [Agent]