citeproc-hs-0.3.2: A Citation Style Language implementation in HaskellSource codeContentsIndex
Text.CSL.Reference
Portabilityunportable
Stabilityunstable
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Description
The Reference type
Synopsis
data Value = forall a . Data a => Value a
type ReferenceMap = [(String, Value)]
mkRefMap :: Data a => a -> ReferenceMap
formatField :: String -> String
fromValue :: Data a => Value -> Maybe a
isValueSet :: Value -> Bool
data Empty = Empty
data Agent = Agent {
givenName :: [String]
droppingPart :: String
nonDroppingPart :: String
familyName :: String
nameSuffix :: String
literal :: String
commaSuffix :: Bool
}
data RefDate = RefDate {
year :: String
month :: String
season :: String
day :: String
other :: String
circa :: String
}
data RefType
= NoType
| Article
| ArticleMagazine
| ArticleNewspaper
| ArticleJournal
| Bill
| Book
| Broadcast
| Chapter
| Entry
| EntryDictionary
| EntryEncyclopedia
| Figure
| Graphic
| Interview
| Legislation
| LegalCase
| Manuscript
| Map
| MotionPicture
| MusicalScore
| Pamphlet
| PaperConference
| Patent
| Post
| PostWeblog
| PersonalCommunication
| Report
| Review
| ReviewBook
| Song
| Speech
| Thesis
| Treaty
| Webpage
newtype CNum = CNum {
unCNum :: Int
}
data Reference = Reference {
refId :: String
refType :: RefType
author :: [Agent]
editor :: [Agent]
translator :: [Agent]
recipient :: [Agent]
interviewer :: [Agent]
composer :: [Agent]
originalAuthor :: [Agent]
containerAuthor :: [Agent]
collectionEditor :: [Agent]
editorialDirector :: [Agent]
issued :: [RefDate]
eventDate :: [RefDate]
accessed :: [RefDate]
container :: [RefDate]
originalDate :: [RefDate]
title :: String
shortTitle :: String
containerTitle :: String
collectionTitle :: String
collectionNumber :: String
originalTitle :: String
publisher :: String
originalPublisher :: String
publisherPlace :: String
authority :: String
archive :: String
archivePlace :: String
archiveLocation :: String
event :: String
eventPlace :: String
page :: String
pageFirst :: String
numberOfPages :: String
version :: String
volume :: String
numberOfVolumes :: String
issue :: String
chapterNumber :: String
medium :: String
status :: String
edition :: String
section :: String
genre :: String
note :: String
annote :: String
abstract :: String
keyword :: String
number :: String
references :: String
url :: String
doi :: String
isbn :: String
categories :: [String]
citationNumber :: CNum
firstReferenceNoteNumber :: Int
citationLabel :: String
}
emptyReference :: Reference
parseLocator :: String -> (String, String)
getReference :: [Reference] -> Cite -> Reference
processCites :: [Reference] -> [[Cite]] -> [[(Cite, Reference)]]
setCitationNumber :: [[(Cite, Reference)]] -> [[(Cite, Reference)]]
setPageFirst :: Reference -> Reference
setNearNote :: Style -> [[Cite]] -> [[Cite]]
readNum :: String -> Int
Documentation
data Value Source
An existential type to wrap the different types a Reference is made of. This way we can create a map to make queries easier.
Constructors
forall a . Data a => Value a
show/hide Instances
type ReferenceMap = [(String, Value)]Source
mkRefMap :: Data a => a -> ReferenceMapSource
formatField :: String -> StringSource
fromValue :: Data a => Value -> Maybe aSource
isValueSet :: Value -> BoolSource
data Empty Source
Constructors
Empty
show/hide Instances
data Agent Source
Constructors
Agent
givenName :: [String]
droppingPart :: String
nonDroppingPart :: String
familyName :: String
nameSuffix :: String
literal :: String
commaSuffix :: Bool
show/hide Instances
data RefDate Source
Constructors
RefDate
year :: String
month :: String
season :: String
day :: String
other :: String
circa :: String
show/hide Instances
data RefType Source
Constructors
NoType
Article
ArticleMagazine
ArticleNewspaper
ArticleJournal
Bill
Book
Broadcast
Chapter
Entry
EntryDictionary
EntryEncyclopedia
Figure
Graphic
Interview
Legislation
LegalCase
Manuscript
Map
MotionPicture
MusicalScore
Pamphlet
PaperConference
Patent
Post
PostWeblog
PersonalCommunication
Report
Review
ReviewBook
Song
Speech
Thesis
Treaty
Webpage
show/hide Instances
newtype CNum Source
Constructors
CNum
unCNum :: Int
show/hide Instances
data Reference Source
The Reference record.
Constructors
Reference
refId :: String
refType :: RefType
author :: [Agent]
editor :: [Agent]
translator :: [Agent]
recipient :: [Agent]
interviewer :: [Agent]
composer :: [Agent]
originalAuthor :: [Agent]
containerAuthor :: [Agent]
collectionEditor :: [Agent]
editorialDirector :: [Agent]
issued :: [RefDate]
eventDate :: [RefDate]
accessed :: [RefDate]
container :: [RefDate]
originalDate :: [RefDate]
title :: String
shortTitle :: String
containerTitle :: String
collectionTitle :: String
collectionNumber :: String
originalTitle :: String
publisher :: String
originalPublisher :: String
publisherPlace :: String
authority :: String
archive :: String
archivePlace :: String
archiveLocation :: String
event :: String
eventPlace :: String
page :: String
pageFirst :: String
numberOfPages :: String
version :: String
volume :: String
numberOfVolumes :: String
issue :: String
chapterNumber :: String
medium :: String
status :: String
edition :: String
section :: String
genre :: String
note :: String
annote :: String
abstract :: String
keyword :: String
number :: String
references :: String
url :: String
doi :: String
isbn :: String
categories :: [String]
citationNumber :: CNum
firstReferenceNoteNumber :: Int
citationLabel :: String
show/hide Instances
emptyReference :: ReferenceSource
parseLocator :: String -> (String, String)Source
getReference :: [Reference] -> Cite -> ReferenceSource
processCites :: [Reference] -> [[Cite]] -> [[(Cite, Reference)]]Source
setCitationNumber :: [[(Cite, Reference)]] -> [[(Cite, Reference)]]Source
setPageFirst :: Reference -> ReferenceSource
setNearNote :: Style -> [[Cite]] -> [[Cite]]Source
readNum :: String -> IntSource
Produced by Haddock version 2.6.1