pandoc-citeproc-0.10.4.1: Supports using pandoc with citeproc

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

Text.CSL.Reference

Description

The Reference type

Synopsis

- newtype Literal = Literal {
  - unLiteral :: String
  }
- data Value = Data a => Value a
- type ReferenceMap = [(String, Value)]
- mkRefMap :: Maybe Reference -> ReferenceMap
- fromValue :: Data a => Value -> Maybe a
- isValueSet :: Value -> Bool
- data Empty = Empty
- data RefDate = RefDate {
  - year :: Literal
  - month :: Literal
  - season :: Literal
  - day :: Literal
  - other :: Literal
  - circa :: Bool
  }
- handleLiteral :: RefDate -> [RefDate]
- toDatePart :: RefDate -> [Int]
- setCirca :: Bool -> RefDate -> RefDate
- mkRefDate :: Literal -> Parser [RefDate]
- data RefType
  - = NoType
  - | Article
  - | ArticleMagazine
  - | ArticleNewspaper
  - | ArticleJournal
  - | Bill
  - | Book
  - | Broadcast
  - | Chapter
  - | Dataset
  - | 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 :: Literal
  - refType :: RefType
  - author :: [Agent]
  - editor :: [Agent]
  - translator :: [Agent]
  - recipient :: [Agent]
  - interviewer :: [Agent]
  - composer :: [Agent]
  - director :: [Agent]
  - illustrator :: [Agent]
  - originalAuthor :: [Agent]
  - containerAuthor :: [Agent]
  - collectionEditor :: [Agent]
  - editorialDirector :: [Agent]
  - reviewedAuthor :: [Agent]
  - issued :: [RefDate]
  - eventDate :: [RefDate]
  - accessed :: [RefDate]
  - container :: [RefDate]
  - originalDate :: [RefDate]
  - submitted :: [RefDate]
  - title :: Formatted
  - titleShort :: Formatted
  - reviewedTitle :: Formatted
  - containerTitle :: Formatted
  - volumeTitle :: Formatted
  - collectionTitle :: Formatted
  - containerTitleShort :: Formatted
  - collectionNumber :: Formatted
  - originalTitle :: Formatted
  - publisher :: Formatted
  - originalPublisher :: Formatted
  - publisherPlace :: Formatted
  - originalPublisherPlace :: Formatted
  - authority :: Formatted
  - jurisdiction :: Formatted
  - archive :: Formatted
  - archivePlace :: Formatted
  - archiveLocation :: Formatted
  - event :: Formatted
  - eventPlace :: Formatted
  - page :: Formatted
  - pageFirst :: Formatted
  - numberOfPages :: Formatted
  - version :: Formatted
  - volume :: Formatted
  - numberOfVolumes :: Formatted
  - issue :: Formatted
  - chapterNumber :: Formatted
  - medium :: Formatted
  - status :: Formatted
  - edition :: Formatted
  - section :: Formatted
  - source :: Formatted
  - genre :: Formatted
  - note :: Formatted
  - annote :: Formatted
  - abstract :: Formatted
  - keyword :: Formatted
  - number :: Formatted
  - references :: Formatted
  - url :: Literal
  - doi :: Literal
  - isbn :: Literal
  - issn :: Literal
  - pmcid :: Literal
  - pmid :: Literal
  - callNumber :: Literal
  - dimensions :: Literal
  - scale :: Literal
  - categories :: [Literal]
  - language :: Literal
  - citationNumber :: CNum
  - firstReferenceNoteNumber :: Int
  - citationLabel :: Literal
  }
- emptyReference :: Reference
- numericVars :: [String]
- getReference :: [Reference] -> Cite -> Maybe Reference
- processCites :: [Reference] -> [[Cite]] -> [[(Cite, Maybe Reference)]]
- setPageFirst :: Reference -> Reference
- setNearNote :: Style -> [[Cite]] -> [[Cite]]

# Documentation

newtype Literal #

Constructors

Literal |
Fields unLiteral :: String

Instances

Eq Literal # |
Methods (==) :: Literal -> Literal -> Bool # (/=) :: Literal -> Literal -> Bool #
Data Literal # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Literal -> c Literal # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Literal # toConstr :: Literal -> Constr # dataTypeOf :: Literal -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Literal) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Literal) # gmapT :: (forall b. Data b => b -> b) -> Literal -> Literal # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Literal -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Literal -> r # gmapQ :: (forall d. Data d => d -> u) -> Literal -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Literal -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Literal -> m Literal # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Literal -> m Literal # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Literal -> m Literal #
Read Literal # |
Methods readsPrec :: Int -> ReadS Literal # readList :: ReadS [Literal] # readPrec :: ReadPrec Literal # readListPrec :: ReadPrec [Literal] #
Show Literal # |
Methods showsPrec :: Int -> Literal -> ShowS # show :: Literal -> String # showList :: [Literal] -> ShowS #
IsString Literal # |
Methods fromString :: String -> Literal #
Generic Literal # |
Associated Types type Rep Literal :: * -> * # Methods from :: Literal -> Rep Literal x # to :: Rep Literal x -> Literal #
Monoid Literal # |
Methods mempty :: Literal # mappend :: Literal -> Literal -> Literal # mconcat :: [Literal] -> Literal #
FromJSON Literal # |
Methods parseJSON :: Value -> Parser Literal # parseJSONList :: Value -> Parser [Literal] #
ToJSON Literal # |
Methods toJSON :: Literal -> Value # toEncoding :: Literal -> Encoding # toJSONList :: [Literal] -> Value # toEncodingList :: [Literal] -> Encoding #
ToYaml Literal # |
Methods toYaml :: Literal -> YamlBuilder #
type Rep Literal # |
type Rep Literal = D1 (MetaData "Literal" "Text.CSL.Reference" "pandoc-citeproc-0.10.4.1-F061zm52Ldr132qbZ20QV5" True) (C1 (MetaCons "Literal" PrefixI True) (S1 (MetaSel (Just Symbol "unLiteral") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))

data Value #

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

Data a => Value a |

Instances

Show Value # |
Methods showsPrec :: Int -> Value -> ShowS # show :: Value -> String # showList :: [Value] -> ShowS #

type ReferenceMap = [(String, Value)] #

mkRefMap :: Maybe Reference -> ReferenceMap #

fromValue :: Data a => Value -> Maybe a #

isValueSet :: Value -> Bool #

data Empty #

Constructors

Empty |

Instances

Data Empty # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Empty -> c Empty # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Empty # toConstr :: Empty -> Constr # dataTypeOf :: Empty -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Empty) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Empty) # gmapT :: (forall b. Data b => b -> b) -> Empty -> Empty # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Empty -> r # gmapQ :: (forall d. Data d => d -> u) -> Empty -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Empty -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Empty -> m Empty #
Generic Empty # |
Associated Types type Rep Empty :: * -> * # Methods from :: Empty -> Rep Empty x # to :: Rep Empty x -> Empty #
type Rep Empty # |
type Rep Empty = D1 (MetaData "Empty" "Text.CSL.Reference" "pandoc-citeproc-0.10.4.1-F061zm52Ldr132qbZ20QV5" False) (C1 (MetaCons "Empty" PrefixI False) U1)

data RefDate #

Constructors

RefDate |
Fields year :: Literal month :: Literal season :: Literal day :: Literal other :: Literal circa :: Bool

Instances

Eq RefDate # |
Methods (==) :: RefDate -> RefDate -> Bool # (/=) :: RefDate -> RefDate -> Bool #
Data RefDate # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RefDate -> c RefDate # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RefDate # toConstr :: RefDate -> Constr # dataTypeOf :: RefDate -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RefDate) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RefDate) # gmapT :: (forall b. Data b => b -> b) -> RefDate -> RefDate # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RefDate -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RefDate -> r # gmapQ :: (forall d. Data d => d -> u) -> RefDate -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RefDate -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RefDate -> m RefDate # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RefDate -> m RefDate # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RefDate -> m RefDate #
Read RefDate # |
Methods readsPrec :: Int -> ReadS RefDate # readList :: ReadS [RefDate] # readPrec :: ReadPrec RefDate # readListPrec :: ReadPrec [RefDate] #
Show RefDate # |
Methods showsPrec :: Int -> RefDate -> ShowS # show :: RefDate -> String # showList :: [RefDate] -> ShowS #
Generic RefDate # |
Associated Types type Rep RefDate :: * -> * # Methods from :: RefDate -> Rep RefDate x # to :: Rep RefDate x -> RefDate #
FromJSON RefDate # |
Methods parseJSON :: Value -> Parser RefDate # parseJSONList :: Value -> Parser [RefDate] #
ToYaml RefDate # |
Methods toYaml :: RefDate -> YamlBuilder #
FromJSON [RefDate] # |
Methods parseJSON :: Value -> Parser [RefDate] # parseJSONList :: Value -> Parser [[RefDate]] #
ToJSON [RefDate] # |
Methods toJSON :: [RefDate] -> Value # toEncoding :: [RefDate] -> Encoding # toJSONList :: [[RefDate]] -> Value # toEncodingList :: [[RefDate]] -> Encoding #
type Rep RefDate # |
type Rep RefDate = D1 (MetaData "RefDate" "Text.CSL.Reference" "pandoc-citeproc-0.10.4.1-F061zm52Ldr132qbZ20QV5" False) (C1 (MetaCons "RefDate" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "year") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) ((:*:) (S1 (MetaSel (Just Symbol "month") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) (S1 (MetaSel (Just Symbol "season") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)))) ((:*:) (S1 (MetaSel (Just Symbol "day") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) ((:*:) (S1 (MetaSel (Just Symbol "other") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) (S1 (MetaSel (Just Symbol "circa") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))))))

handleLiteral :: RefDate -> [RefDate] #

toDatePart :: RefDate -> [Int] #

setCirca :: Bool -> RefDate -> RefDate #

mkRefDate :: Literal -> Parser [RefDate] #

data RefType #

Constructors

NoType |
Article |
ArticleMagazine |
ArticleNewspaper |
ArticleJournal |
Bill |
Book |
Broadcast |
Chapter |
Dataset |
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 |

Instances

Eq RefType # |
Methods (==) :: RefType -> RefType -> Bool # (/=) :: RefType -> RefType -> Bool #
Data RefType # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RefType -> c RefType # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RefType # toConstr :: RefType -> Constr # dataTypeOf :: RefType -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RefType) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RefType) # gmapT :: (forall b. Data b => b -> b) -> RefType -> RefType # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RefType -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RefType -> r # gmapQ :: (forall d. Data d => d -> u) -> RefType -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> RefType -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> RefType -> m RefType # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RefType -> m RefType # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RefType -> m RefType #
Read RefType # |
Methods readsPrec :: Int -> ReadS RefType # readList :: ReadS [RefType] # readPrec :: ReadPrec RefType # readListPrec :: ReadPrec [RefType] #
Show RefType # |
Methods showsPrec :: Int -> RefType -> ShowS # show :: RefType -> String # showList :: [RefType] -> ShowS #
Generic RefType # |
Associated Types type Rep RefType :: * -> * # Methods from :: RefType -> Rep RefType x # to :: Rep RefType x -> RefType #
FromJSON RefType # |
Methods parseJSON :: Value -> Parser RefType # parseJSONList :: Value -> Parser [RefType] #
ToJSON RefType # |
Methods toJSON :: RefType -> Value # toEncoding :: RefType -> Encoding # toJSONList :: [RefType] -> Value # toEncodingList :: [RefType] -> Encoding #
ToYaml RefType # |
Methods toYaml :: RefType -> YamlBuilder #
type Rep RefType # |
type Rep RefType = D1 (MetaData "RefType" "Text.CSL.Reference" "pandoc-citeproc-0.10.4.1-F061zm52Ldr132qbZ20QV5" False) ((:+:) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "NoType" PrefixI False) U1) (C1 (MetaCons "Article" PrefixI False) U1)) ((:+:) (C1 (MetaCons "ArticleMagazine" PrefixI False) U1) (C1 (MetaCons "ArticleNewspaper" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "ArticleJournal" PrefixI False) U1) (C1 (MetaCons "Bill" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Book" PrefixI False) U1) ((:+:) (C1 (MetaCons "Broadcast" PrefixI False) U1) (C1 (MetaCons "Chapter" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Dataset" PrefixI False) U1) (C1 (MetaCons "Entry" PrefixI False) U1)) ((:+:) (C1 (MetaCons "EntryDictionary" PrefixI False) U1) (C1 (MetaCons "EntryEncyclopedia" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "Figure" PrefixI False) U1) (C1 (MetaCons "Graphic" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Interview" PrefixI False) U1) ((:+:) (C1 (MetaCons "Legislation" PrefixI False) U1) (C1 (MetaCons "LegalCase" PrefixI False) U1)))))) ((:+:) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "Manuscript" PrefixI False) U1) (C1 (MetaCons "Map" PrefixI False) U1)) ((:+:) (C1 (MetaCons "MotionPicture" PrefixI False) U1) (C1 (MetaCons "MusicalScore" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "Pamphlet" PrefixI False) U1) (C1 (MetaCons "PaperConference" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Patent" PrefixI False) U1) ((:+:) (C1 (MetaCons "Post" PrefixI False) U1) (C1 (MetaCons "PostWeblog" PrefixI False) U1))))) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "PersonalCommunication" PrefixI False) U1) (C1 (MetaCons "Report" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Review" PrefixI False) U1) (C1 (MetaCons "ReviewBook" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "Song" PrefixI False) U1) (C1 (MetaCons "Speech" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Thesis" PrefixI False) U1) ((:+:) (C1 (MetaCons "Treaty" PrefixI False) U1) (C1 (MetaCons "Webpage" PrefixI False) U1)))))))

newtype CNum #

Constructors

CNum |
Fields unCNum :: Int

Instances

Eq CNum # |
Methods (==) :: CNum -> CNum -> Bool # (/=) :: CNum -> CNum -> Bool #
Data CNum # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CNum -> c CNum # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CNum # toConstr :: CNum -> Constr # dataTypeOf :: CNum -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CNum) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CNum) # gmapT :: (forall b. Data b => b -> b) -> CNum -> CNum # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CNum -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CNum -> r # gmapQ :: (forall d. Data d => d -> u) -> CNum -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> CNum -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> CNum -> m CNum # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CNum -> m CNum # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CNum -> m CNum #
Num CNum # |
Methods (+) :: CNum -> CNum -> CNum # (-) :: CNum -> CNum -> CNum # (*) :: CNum -> CNum -> CNum # negate :: CNum -> CNum # abs :: CNum -> CNum # signum :: CNum -> CNum # fromInteger :: Integer -> CNum #
Read CNum # |
Methods readsPrec :: Int -> ReadS CNum # readList :: ReadS [CNum] # readPrec :: ReadPrec CNum # readListPrec :: ReadPrec [CNum] #
Show CNum # |
Methods showsPrec :: Int -> CNum -> ShowS # show :: CNum -> String # showList :: [CNum] -> ShowS #
Generic CNum # |
Associated Types type Rep CNum :: * -> * # Methods from :: CNum -> Rep CNum x # to :: Rep CNum x -> CNum #
FromJSON CNum # |
Methods parseJSON :: Value -> Parser CNum # parseJSONList :: Value -> Parser [CNum] #
ToJSON CNum # |
Methods toJSON :: CNum -> Value # toEncoding :: CNum -> Encoding # toJSONList :: [CNum] -> Value # toEncodingList :: [CNum] -> Encoding #
ToYaml CNum # |
Methods toYaml :: CNum -> YamlBuilder #
type Rep CNum # |
type Rep CNum = D1 (MetaData "CNum" "Text.CSL.Reference" "pandoc-citeproc-0.10.4.1-F061zm52Ldr132qbZ20QV5" True) (C1 (MetaCons "CNum" PrefixI True) (S1 (MetaSel (Just Symbol "unCNum") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

data Reference #

The `Reference` record.

Constructors

Reference |
Fields refId :: Literal refType :: RefType author :: [Agent] editor :: [Agent] translator :: [Agent] recipient :: [Agent] interviewer :: [Agent] composer :: [Agent] director :: [Agent] illustrator :: [Agent] originalAuthor :: [Agent] containerAuthor :: [Agent] collectionEditor :: [Agent] editorialDirector :: [Agent] reviewedAuthor :: [Agent] issued :: [RefDate] eventDate :: [RefDate] accessed :: [RefDate] container :: [RefDate] originalDate :: [RefDate] submitted :: [RefDate] title :: Formatted titleShort :: Formatted reviewedTitle :: Formatted containerTitle :: Formatted volumeTitle :: Formatted collectionTitle :: Formatted containerTitleShort :: Formatted collectionNumber :: Formatted originalTitle :: Formatted publisher :: Formatted originalPublisher :: Formatted publisherPlace :: Formatted originalPublisherPlace :: Formatted authority :: Formatted jurisdiction :: Formatted archive :: Formatted archivePlace :: Formatted archiveLocation :: Formatted event :: Formatted eventPlace :: Formatted page :: Formatted pageFirst :: Formatted numberOfPages :: Formatted version :: Formatted volume :: Formatted numberOfVolumes :: Formatted issue :: Formatted chapterNumber :: Formatted medium :: Formatted status :: Formatted edition :: Formatted section :: Formatted source :: Formatted genre :: Formatted note :: Formatted annote :: Formatted abstract :: Formatted keyword :: Formatted number :: Formatted references :: Formatted url :: Literal doi :: Literal isbn :: Literal issn :: Literal pmcid :: Literal pmid :: Literal callNumber :: Literal dimensions :: Literal scale :: Literal categories :: [Literal] language :: Literal citationNumber :: CNum firstReferenceNoteNumber :: Int citationLabel :: Literal

Instances

Eq Reference # |
Methods (==) :: Reference -> Reference -> Bool # (/=) :: Reference -> Reference -> Bool #
Data Reference # |
Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Reference -> c Reference # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Reference # toConstr :: Reference -> Constr # dataTypeOf :: Reference -> DataType # dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Reference) # dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Reference) # gmapT :: (forall b. Data b => b -> b) -> Reference -> Reference # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Reference -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Reference -> r # gmapQ :: (forall d. Data d => d -> u) -> Reference -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Reference -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Reference -> m Reference # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Reference -> m Reference # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Reference -> m Reference #
Read Reference # |
Methods readsPrec :: Int -> ReadS Reference # readList :: ReadS [Reference] # readPrec :: ReadPrec Reference # readListPrec :: ReadPrec [Reference] #
Show Reference # |
Methods showsPrec :: Int -> Reference -> ShowS # show :: Reference -> String # showList :: [Reference] -> ShowS #
Generic Reference # |
Associated Types type Rep Reference :: * -> * # Methods from :: Reference -> Rep Reference x # to :: Rep Reference x -> Reference #
FromJSON Reference # |
Methods parseJSON :: Value -> Parser Reference # parseJSONList :: Value -> Parser [Reference] #
ToJSON Reference # |
Methods toJSON :: Reference -> Value # toEncoding :: Reference -> Encoding # toJSONList :: [Reference] -> Value # toEncodingList :: [Reference] -> Encoding #
ToYaml Reference # |
Methods toYaml :: Reference -> YamlBuilder #
type Rep Reference # |
type Rep Reference = D1 (MetaData "Reference" "Text.CSL.Reference" "pandoc-citeproc-0.10.4.1-F061zm52Ldr132qbZ20QV5" False) (C1 (MetaCons "Reference" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "refId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) (S1 (MetaSel (Just Symbol "refType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 RefType))) ((:*:) (S1 (MetaSel (Just Symbol "author") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) (S1 (MetaSel (Just Symbol "editor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "translator") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) (S1 (MetaSel (Just Symbol "recipient") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent]))) ((:*:) (S1 (MetaSel (Just Symbol "interviewer") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) ((:*:) (S1 (MetaSel (Just Symbol "composer") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) (S1 (MetaSel (Just Symbol "director") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "illustrator") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) (S1 (MetaSel (Just Symbol "originalAuthor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent]))) ((:*:) (S1 (MetaSel (Just Symbol "containerAuthor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) (S1 (MetaSel (Just Symbol "collectionEditor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "editorialDirector") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent])) (S1 (MetaSel (Just Symbol "reviewedAuthor") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Agent]))) ((:*:) (S1 (MetaSel (Just Symbol "issued") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [RefDate])) ((:*:) (S1 (MetaSel (Just Symbol "eventDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [RefDate])) (S1 (MetaSel (Just Symbol "accessed") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [RefDate]))))))) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "container") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [RefDate])) (S1 (MetaSel (Just Symbol "originalDate") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [RefDate]))) ((:*:) (S1 (MetaSel (Just Symbol "submitted") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [RefDate])) (S1 (MetaSel (Just Symbol "title") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "titleShort") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "reviewedTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "containerTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) ((:*:) (S1 (MetaSel (Just Symbol "volumeTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "collectionTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "containerTitleShort") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "collectionNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "originalTitle") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) ((:*:) (S1 (MetaSel (Just Symbol "publisher") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "originalPublisher") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "publisherPlace") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "originalPublisherPlace") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "authority") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) ((:*:) (S1 (MetaSel (Just Symbol "jurisdiction") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "archive") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)))))))) ((:*:) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "archivePlace") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "archiveLocation") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "event") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "eventPlace") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "page") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "pageFirst") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "numberOfPages") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) ((:*:) (S1 (MetaSel (Just Symbol "version") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "volume") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "numberOfVolumes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "issue") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "chapterNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) ((:*:) (S1 (MetaSel (Just Symbol "medium") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "status") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "edition") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "section") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "source") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) ((:*:) (S1 (MetaSel (Just Symbol "genre") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "note") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))))))) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "annote") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "abstract") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted))) ((:*:) (S1 (MetaSel (Just Symbol "keyword") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "number") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "references") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Formatted)) (S1 (MetaSel (Just Symbol "url") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal))) ((:*:) (S1 (MetaSel (Just Symbol "doi") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) ((:*:) (S1 (MetaSel (Just Symbol "isbn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) (S1 (MetaSel (Just Symbol "issn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "pmcid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) (S1 (MetaSel (Just Symbol "pmid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal))) ((:*:) (S1 (MetaSel (Just Symbol "callNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) ((:*:) (S1 (MetaSel (Just Symbol "dimensions") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal)) (S1 (MetaSel (Just Symbol "scale") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "categories") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Literal])) (S1 (MetaSel (Just Symbol "language") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal))) ((:*:) (S1 (MetaSel (Just Symbol "citationNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 CNum)) ((:*:) (S1 (MetaSel (Just Symbol "firstReferenceNoteNumber") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)) (S1 (MetaSel (Just Symbol "citationLabel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Literal))))))))))

emptyReference :: Reference #

numericVars :: [String] #

getReference :: [Reference] -> Cite -> Maybe Reference #

processCites :: [Reference] -> [[Cite]] -> [[(Cite, Maybe Reference)]] #

setPageFirst :: Reference -> Reference #

setNearNote :: Style -> [[Cite]] -> [[Cite]] #