citeproc-0.9.0.1: Generates citations and bibliography from CSL styles.
Safe HaskellNone
LanguageHaskell2010

Citeproc.Types

Synopsis

Documentation

data CiteprocOptions Source #

Options affecting the output in ways that go beyond what can be specified in styles.

Constructors

CiteprocOptions 

Fields

  • linkCitations :: Bool

    Create hyperlinks from citations to bibliography entries

  • linkBibliography :: Bool

    Enables the following options:

    • Automatically linkify any DOI, PMCID, PMID, or URL appearing in a bibliography entry.
    • When a bibliography entry has a DOI, PMCID, PMID, or URL available (in order of priority), but the style does not explicitly render at least one of them, add a hyperlink to the title instead.
    • A bibliography item with a DOI, PMCID, PMID, or URL available (in order of priority) will be wrapped in a hyperlink when the hyperlink has not already been applied to one of its parts (e.g. to the title).

Instances

Instances details
Show CiteprocOptions Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> CiteprocOptions -> ShowS

show :: CiteprocOptions -> String

showList :: [CiteprocOptions] -> ShowS

Eq CiteprocOptions Source # 
Instance details

Defined in Citeproc.Types

class (Semigroup a, Monoid a, Show a, Eq a, Ord a) => CiteprocOutput a where Source #

CSL styles require certain formatting transformations to be defined. These are defined in the CiteprocOutput class. The library may be used with any structured format that defines these operations. See the CslJson module for an instance that corresponds to the markup allowed in CSL JSON. See the Pandoc module for an instance for Pandoc Inlines.

Methods

toText :: a -> Text Source #

fromText :: Text -> a Source #

dropTextWhile :: (Char -> Bool) -> a -> a Source #

dropTextWhileEnd :: (Char -> Bool) -> a -> a Source #

addFontVariant :: FontVariant -> a -> a Source #

addFontStyle :: FontStyle -> a -> a Source #

addFontWeight :: FontWeight -> a -> a Source #

addTextDecoration :: TextDecoration -> a -> a Source #

addVerticalAlign :: VerticalAlign -> a -> a Source #

addTextCase :: Maybe Lang -> TextCase -> a -> a Source #

addDisplay :: DisplayStyle -> a -> a Source #

addQuotes :: a -> a Source #

movePunctuationInsideQuotes :: a -> a Source #

inNote :: a -> a Source #

mapText :: (Text -> Text) -> a -> a Source #

addHyperlink :: Text -> a -> a Source #

localizeQuotes :: Locale -> a -> a Source #

Instances

Instances details
CiteprocOutput Inlines Source # 
Instance details

Defined in Citeproc.Pandoc

Methods

toText :: Inlines -> Text Source #

fromText :: Text -> Inlines Source #

dropTextWhile :: (Char -> Bool) -> Inlines -> Inlines Source #

dropTextWhileEnd :: (Char -> Bool) -> Inlines -> Inlines Source #

addFontVariant :: FontVariant -> Inlines -> Inlines Source #

addFontStyle :: FontStyle -> Inlines -> Inlines Source #

addFontWeight :: FontWeight -> Inlines -> Inlines Source #

addTextDecoration :: TextDecoration -> Inlines -> Inlines Source #

addVerticalAlign :: VerticalAlign -> Inlines -> Inlines Source #

addTextCase :: Maybe Lang -> TextCase -> Inlines -> Inlines Source #

addDisplay :: DisplayStyle -> Inlines -> Inlines Source #

addQuotes :: Inlines -> Inlines Source #

movePunctuationInsideQuotes :: Inlines -> Inlines Source #

inNote :: Inlines -> Inlines Source #

mapText :: (Text -> Text) -> Inlines -> Inlines Source #

addHyperlink :: Text -> Inlines -> Inlines Source #

localizeQuotes :: Locale -> Inlines -> Inlines Source #

CiteprocOutput (CslJson Text) Source # 
Instance details

Defined in Citeproc.CslJson

Methods

toText :: CslJson Text -> Text Source #

fromText :: Text -> CslJson Text Source #

dropTextWhile :: (Char -> Bool) -> CslJson Text -> CslJson Text Source #

dropTextWhileEnd :: (Char -> Bool) -> CslJson Text -> CslJson Text Source #

addFontVariant :: FontVariant -> CslJson Text -> CslJson Text Source #

addFontStyle :: FontStyle -> CslJson Text -> CslJson Text Source #

addFontWeight :: FontWeight -> CslJson Text -> CslJson Text Source #

addTextDecoration :: TextDecoration -> CslJson Text -> CslJson Text Source #

addVerticalAlign :: VerticalAlign -> CslJson Text -> CslJson Text Source #

addTextCase :: Maybe Lang -> TextCase -> CslJson Text -> CslJson Text Source #

addDisplay :: DisplayStyle -> CslJson Text -> CslJson Text Source #

addQuotes :: CslJson Text -> CslJson Text Source #

movePunctuationInsideQuotes :: CslJson Text -> CslJson Text Source #

inNote :: CslJson Text -> CslJson Text Source #

mapText :: (Text -> Text) -> CslJson Text -> CslJson Text Source #

addHyperlink :: Text -> CslJson Text -> CslJson Text Source #

localizeQuotes :: Locale -> CslJson Text -> CslJson Text Source #

data CiteprocError Source #

Instances

Instances details
Show CiteprocError Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> CiteprocError -> ShowS

show :: CiteprocError -> String

showList :: [CiteprocError] -> ShowS

Eq CiteprocError Source # 
Instance details

Defined in Citeproc.Types

newtype ItemId Source #

The identifier used to identify a work in a bibliographic database.

Constructors

ItemId 

Fields

Instances

Instances details
FromJSON ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser ItemId

parseJSONList :: Value -> Parser [ItemId]

omittedField :: Maybe ItemId

ToJSON ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: ItemId -> Value

toEncoding :: ItemId -> Encoding

toJSONList :: [ItemId] -> Value

toEncodingList :: [ItemId] -> Encoding

omitField :: ItemId -> Bool

Monoid ItemId Source # 
Instance details

Defined in Citeproc.Types

Semigroup ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

(<>) :: ItemId -> ItemId -> ItemId

sconcat :: NonEmpty ItemId -> ItemId

stimes :: Integral b => b -> ItemId -> ItemId

Show ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> ItemId -> ShowS

show :: ItemId -> String

showList :: [ItemId] -> ShowS

Eq ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: ItemId -> ItemId -> Bool

(/=) :: ItemId -> ItemId -> Bool

Ord ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: ItemId -> ItemId -> Ordering

(<) :: ItemId -> ItemId -> Bool

(<=) :: ItemId -> ItemId -> Bool

(>) :: ItemId -> ItemId -> Bool

(>=) :: ItemId -> ItemId -> Bool

max :: ItemId -> ItemId -> ItemId

min :: ItemId -> ItemId -> ItemId

data CitationItem a Source #

The part of a citation corresponding to a single work, possibly including a label, locator, prefix and suffix.

Instances

Instances details
(FromJSON a, Eq a) => FromJSON (CitationItem a) Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (CitationItem a)

parseJSONList :: Value -> Parser [CitationItem a]

omittedField :: Maybe (CitationItem a)

ToJSON a => ToJSON (CitationItem a) Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: CitationItem a -> Value

toEncoding :: CitationItem a -> Encoding

toJSONList :: [CitationItem a] -> Value

toEncodingList :: [CitationItem a] -> Encoding

omitField :: CitationItem a -> Bool

Show a => Show (CitationItem a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> CitationItem a -> ShowS

show :: CitationItem a -> String

showList :: [CitationItem a] -> ShowS

Eq a => Eq (CitationItem a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: CitationItem a -> CitationItem a -> Bool

(/=) :: CitationItem a -> CitationItem a -> Bool

Ord a => Ord (CitationItem a) Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: CitationItem a -> CitationItem a -> Ordering

(<) :: CitationItem a -> CitationItem a -> Bool

(<=) :: CitationItem a -> CitationItem a -> Bool

(>) :: CitationItem a -> CitationItem a -> Bool

(>=) :: CitationItem a -> CitationItem a -> Bool

max :: CitationItem a -> CitationItem a -> CitationItem a

min :: CitationItem a -> CitationItem a -> CitationItem a

data CitationItemType Source #

Constructors

AuthorOnly

e.g., Smith

SuppressAuthor

e.g., (2000, p. 30)

NormalCite

e.g., (Smith 2000, p. 30)

Instances

Instances details
FromJSON CitationItemType Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser CitationItemType

parseJSONList :: Value -> Parser [CitationItemType]

omittedField :: Maybe CitationItemType

ToJSON CitationItemType Source # 
Instance details

Defined in Citeproc.Types

Show CitationItemType Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> CitationItemType -> ShowS

show :: CitationItemType -> String

showList :: [CitationItemType] -> ShowS

Eq CitationItemType Source # 
Instance details

Defined in Citeproc.Types

Ord CitationItemType Source # 
Instance details

Defined in Citeproc.Types

data Citation a Source #

A citation (which may include several items, e.g. in (Smith 2000; Jones 2010, p. 30)).

Constructors

Citation 

Fields

Instances

Instances details
(FromJSON a, Eq a) => FromJSON (Citation a) Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (Citation a)

parseJSONList :: Value -> Parser [Citation a]

omittedField :: Maybe (Citation a)

ToJSON a => ToJSON (Citation a) Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Citation a -> Value

toEncoding :: Citation a -> Encoding

toJSONList :: [Citation a] -> Value

toEncodingList :: [Citation a] -> Encoding

omitField :: Citation a -> Bool

Show a => Show (Citation a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Citation a -> ShowS

show :: Citation a -> String

showList :: [Citation a] -> ShowS

Eq a => Eq (Citation a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Citation a -> Citation a -> Bool

(/=) :: Citation a -> Citation a -> Bool

Ord a => Ord (Citation a) Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Citation a -> Citation a -> Ordering

(<) :: Citation a -> Citation a -> Bool

(<=) :: Citation a -> Citation a -> Bool

(>) :: Citation a -> Citation a -> Bool

(>=) :: Citation a -> Citation a -> Bool

max :: Citation a -> Citation a -> Citation a

min :: Citation a -> Citation a -> Citation a

data ElementType a Source #

Instances

Instances details
Show (ElementType a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> ElementType a -> ShowS

show :: ElementType a -> String

showList :: [ElementType a] -> ShowS

Eq (ElementType a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: ElementType a -> ElementType a -> Bool

(/=) :: ElementType a -> ElementType a -> Bool

data Element a Source #

Constructors

Element (ElementType a) Formatting 

Instances

Instances details
Show (Element a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Element a -> ShowS

show :: Element a -> String

showList :: [Element a] -> ShowS

Eq (Element a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Element a -> Element a -> Bool

(/=) :: Element a -> Element a -> Bool

data NumberForm Source #

Instances

Instances details
Show NumberForm Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> NumberForm -> ShowS

show :: NumberForm -> String

showList :: [NumberForm] -> ShowS

Eq NumberForm Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: NumberForm -> NumberForm -> Bool

(/=) :: NumberForm -> NumberForm -> Bool

data Pluralize Source #

Instances

Instances details
Show Pluralize Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Pluralize -> ShowS

show :: Pluralize -> String

showList :: [Pluralize] -> ShowS

Eq Pluralize Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Pluralize -> Pluralize -> Bool

(/=) :: Pluralize -> Pluralize -> Bool

data DateType Source #

Instances

Instances details
Show DateType Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DateType -> ShowS

show :: DateType -> String

showList :: [DateType] -> ShowS

Eq DateType Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: DateType -> DateType -> Bool

(/=) :: DateType -> DateType -> Bool

Ord DateType Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: DateType -> DateType -> Ordering

(<) :: DateType -> DateType -> Bool

(<=) :: DateType -> DateType -> Bool

(>) :: DateType -> DateType -> Bool

(>=) :: DateType -> DateType -> Bool

max :: DateType -> DateType -> DateType

min :: DateType -> DateType -> DateType

data Date Source #

Constructors

Date 

Fields

Instances

Instances details
FromJSON Date Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser Date

parseJSONList :: Value -> Parser [Date]

omittedField :: Maybe Date

ToJSON Date Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Date -> Value

toEncoding :: Date -> Encoding

toJSONList :: [Date] -> Value

toEncodingList :: [Date] -> Encoding

omitField :: Date -> Bool

Show Date Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Date -> ShowS

show :: Date -> String

showList :: [Date] -> ShowS

Eq Date Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Date -> Date -> Bool

(/=) :: Date -> Date -> Bool

Ord Date Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Date -> Date -> Ordering

(<) :: Date -> Date -> Bool

(<=) :: Date -> Date -> Bool

(>) :: Date -> Date -> Bool

(>=) :: Date -> Date -> Bool

max :: Date -> Date -> Date

min :: Date -> Date -> Date

rawDateEDTF :: Text -> Maybe Date Source #

newtype DateParts Source #

Constructors

DateParts [Int] 

Instances

Instances details
FromJSON DateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser DateParts

parseJSONList :: Value -> Parser [DateParts]

omittedField :: Maybe DateParts

ToJSON DateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: DateParts -> Value

toEncoding :: DateParts -> Encoding

toJSONList :: [DateParts] -> Value

toEncodingList :: [DateParts] -> Encoding

omitField :: DateParts -> Bool

Show DateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DateParts -> ShowS

show :: DateParts -> String

showList :: [DateParts] -> ShowS

Eq DateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: DateParts -> DateParts -> Bool

(/=) :: DateParts -> DateParts -> Bool

Ord DateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: DateParts -> DateParts -> Ordering

(<) :: DateParts -> DateParts -> Bool

(<=) :: DateParts -> DateParts -> Bool

(>) :: DateParts -> DateParts -> Bool

(>=) :: DateParts -> DateParts -> Bool

max :: DateParts -> DateParts -> DateParts

min :: DateParts -> DateParts -> DateParts

data ShowDateParts Source #

Constructors

YearMonthDay 
YearMonth 
Year 

Instances

Instances details
Show ShowDateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> ShowDateParts -> ShowS

show :: ShowDateParts -> String

showList :: [ShowDateParts] -> ShowS

Eq ShowDateParts Source # 
Instance details

Defined in Citeproc.Types

data DPName Source #

Constructors

DPYear 
DPMonth 
DPDay 

Instances

Instances details
Show DPName Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DPName -> ShowS

show :: DPName -> String

showList :: [DPName] -> ShowS

Eq DPName Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: DPName -> DPName -> Bool

(/=) :: DPName -> DPName -> Bool

Ord DPName Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: DPName -> DPName -> Ordering

(<) :: DPName -> DPName -> Bool

(<=) :: DPName -> DPName -> Bool

(>) :: DPName -> DPName -> Bool

(>=) :: DPName -> DPName -> Bool

max :: DPName -> DPName -> DPName

min :: DPName -> DPName -> DPName

data DPForm Source #

Instances

Instances details
Show DPForm Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DPForm -> ShowS

show :: DPForm -> String

showList :: [DPForm] -> ShowS

Eq DPForm Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: DPForm -> DPForm -> Bool

(/=) :: DPForm -> DPForm -> Bool

data DP Source #

Constructors

DP 

Instances

Instances details
Show DP Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DP -> ShowS

show :: DP -> String

showList :: [DP] -> ShowS

Eq DP Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: DP -> DP -> Bool

(/=) :: DP -> DP -> Bool

data VariableForm Source #

Constructors

ShortForm 
LongForm 

Instances

Instances details
Show VariableForm Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> VariableForm -> ShowS

show :: VariableForm -> String

showList :: [VariableForm] -> ShowS

Eq VariableForm Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: VariableForm -> VariableForm -> Bool

(/=) :: VariableForm -> VariableForm -> Bool

data TextType Source #

Instances

Instances details
Show TextType Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TextType -> ShowS

show :: TextType -> String

showList :: [TextType] -> ShowS

Eq TextType Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: TextType -> TextType -> Bool

(/=) :: TextType -> TextType -> Bool

data NameFormat Source #

Instances

Instances details
Show NameFormat Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> NameFormat -> ShowS

show :: NameFormat -> String

showList :: [NameFormat] -> ShowS

Eq NameFormat Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: NameFormat -> NameFormat -> Bool

(/=) :: NameFormat -> NameFormat -> Bool

data NameAsSortOrder Source #

Instances

Instances details
Show NameAsSortOrder Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> NameAsSortOrder -> ShowS

show :: NameAsSortOrder -> String

showList :: [NameAsSortOrder] -> ShowS

Eq NameAsSortOrder Source # 
Instance details

Defined in Citeproc.Types

data NamesFormat Source #

Constructors

NamesFormat 

Fields

Instances

Instances details
Show NamesFormat Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> NamesFormat -> ShowS

show :: NamesFormat -> String

showList :: [NamesFormat] -> ShowS

Eq NamesFormat Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: NamesFormat -> NamesFormat -> Bool

(/=) :: NamesFormat -> NamesFormat -> Bool

data NameForm Source #

Constructors

LongName 
ShortName 
CountName 

Instances

Instances details
Show NameForm Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> NameForm -> ShowS

show :: NameForm -> String

showList :: [NameForm] -> ShowS

Eq NameForm Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: NameForm -> NameForm -> Bool

(/=) :: NameForm -> NameForm -> Bool

data Name Source #

Constructors

Name 

Fields

Instances

Instances details
FromJSON Name Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser Name

parseJSONList :: Value -> Parser [Name]

omittedField :: Maybe Name

ToJSON Name Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Name -> Value

toEncoding :: Name -> Encoding

toJSONList :: [Name] -> Value

toEncodingList :: [Name] -> Encoding

omitField :: Name -> Bool

Show Name Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Name -> ShowS

show :: Name -> String

showList :: [Name] -> ShowS

Eq Name Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Name -> Name -> Bool

(/=) :: Name -> Name -> Bool

Ord Name Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Name -> Name -> Ordering

(<) :: Name -> Name -> Bool

(<=) :: Name -> Name -> Bool

(>) :: Name -> Name -> Bool

(>=) :: Name -> Name -> Bool

max :: Name -> Name -> Name

min :: Name -> Name -> Name

data DelimiterPrecedes Source #

Instances

Instances details
Show DelimiterPrecedes Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DelimiterPrecedes -> ShowS

show :: DelimiterPrecedes -> String

showList :: [DelimiterPrecedes] -> ShowS

Eq DelimiterPrecedes Source # 
Instance details

Defined in Citeproc.Types

data Condition Source #

Instances

Instances details
Show Condition Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Condition -> ShowS

show :: Condition -> String

showList :: [Condition] -> ShowS

Eq Condition Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Condition -> Condition -> Bool

(/=) :: Condition -> Condition -> Bool

data Position Source #

Instances

Instances details
Show Position Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Position -> ShowS

show :: Position -> String

showList :: [Position] -> ShowS

Eq Position Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Position -> Position -> Bool

(/=) :: Position -> Position -> Bool

Ord Position Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Position -> Position -> Ordering

(<) :: Position -> Position -> Bool

(<=) :: Position -> Position -> Bool

(>) :: Position -> Position -> Bool

(>=) :: Position -> Position -> Bool

max :: Position -> Position -> Position

min :: Position -> Position -> Position

data Match Source #

Constructors

MatchAll 
MatchAny 
MatchNone 

Instances

Instances details
Show Match Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Match -> ShowS

show :: Match -> String

showList :: [Match] -> ShowS

Eq Match Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Match -> Match -> Bool

(/=) :: Match -> Match -> Bool

data Formatting Source #

Instances

Instances details
Monoid Formatting Source # 
Instance details

Defined in Citeproc.Types

Semigroup Formatting Source # 
Instance details

Defined in Citeproc.Types

Methods

(<>) :: Formatting -> Formatting -> Formatting

sconcat :: NonEmpty Formatting -> Formatting

stimes :: Integral b => b -> Formatting -> Formatting

Show Formatting Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Formatting -> ShowS

show :: Formatting -> String

showList :: [Formatting] -> ShowS

Eq Formatting Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Formatting -> Formatting -> Bool

(/=) :: Formatting -> Formatting -> Bool

data FontStyle Source #

Instances

Instances details
Show FontStyle Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> FontStyle -> ShowS

show :: FontStyle -> String

showList :: [FontStyle] -> ShowS

Eq FontStyle Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: FontStyle -> FontStyle -> Bool

(/=) :: FontStyle -> FontStyle -> Bool

data FontVariant Source #

Instances

Instances details
Show FontVariant Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> FontVariant -> ShowS

show :: FontVariant -> String

showList :: [FontVariant] -> ShowS

Eq FontVariant Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: FontVariant -> FontVariant -> Bool

(/=) :: FontVariant -> FontVariant -> Bool

data FontWeight Source #

Instances

Instances details
Show FontWeight Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> FontWeight -> ShowS

show :: FontWeight -> String

showList :: [FontWeight] -> ShowS

Eq FontWeight Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: FontWeight -> FontWeight -> Bool

(/=) :: FontWeight -> FontWeight -> Bool

data TextDecoration Source #

Instances

Instances details
Show TextDecoration Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TextDecoration -> ShowS

show :: TextDecoration -> String

showList :: [TextDecoration] -> ShowS

Eq TextDecoration Source # 
Instance details

Defined in Citeproc.Types

data VerticalAlign Source #

Instances

Instances details
Show VerticalAlign Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> VerticalAlign -> ShowS

show :: VerticalAlign -> String

showList :: [VerticalAlign] -> ShowS

Eq VerticalAlign Source # 
Instance details

Defined in Citeproc.Types

data DisplayStyle Source #

Instances

Instances details
Show DisplayStyle Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> DisplayStyle -> ShowS

show :: DisplayStyle -> String

showList :: [DisplayStyle] -> ShowS

Eq DisplayStyle Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: DisplayStyle -> DisplayStyle -> Bool

(/=) :: DisplayStyle -> DisplayStyle -> Bool

data TextCase Source #

Instances

Instances details
Show TextCase Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TextCase -> ShowS

show :: TextCase -> String

showList :: [TextCase] -> ShowS

Eq TextCase Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: TextCase -> TextCase -> Bool

(/=) :: TextCase -> TextCase -> Bool

data SecondFieldAlign Source #

Instances

Instances details
Show SecondFieldAlign Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> SecondFieldAlign -> ShowS

show :: SecondFieldAlign -> String

showList :: [SecondFieldAlign] -> ShowS

Eq SecondFieldAlign Source # 
Instance details

Defined in Citeproc.Types

data Style a Source #

Constructors

Style 

Instances

Instances details
Show (Style a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Style a -> ShowS

show :: Style a -> String

showList :: [Style a] -> ShowS

Eq (Style a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Style a -> Style a -> Bool

(/=) :: Style a -> Style a -> Bool

data TermMatch Source #

Instances

Instances details
Show TermMatch Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TermMatch -> ShowS

show :: TermMatch -> String

showList :: [TermMatch] -> ShowS

Eq TermMatch Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: TermMatch -> TermMatch -> Bool

(/=) :: TermMatch -> TermMatch -> Bool

Ord TermMatch Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: TermMatch -> TermMatch -> Ordering

(<) :: TermMatch -> TermMatch -> Bool

(<=) :: TermMatch -> TermMatch -> Bool

(>) :: TermMatch -> TermMatch -> Bool

(>=) :: TermMatch -> TermMatch -> Bool

max :: TermMatch -> TermMatch -> TermMatch

min :: TermMatch -> TermMatch -> TermMatch

data TermGender Source #

Constructors

Masculine 
Feminine 

Instances

Instances details
Show TermGender Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TermGender -> ShowS

show :: TermGender -> String

showList :: [TermGender] -> ShowS

Eq TermGender Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: TermGender -> TermGender -> Bool

(/=) :: TermGender -> TermGender -> Bool

Ord TermGender Source # 
Instance details

Defined in Citeproc.Types

data TermNumber Source #

Constructors

Singular 
Plural 

Instances

Instances details
Show TermNumber Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TermNumber -> ShowS

show :: TermNumber -> String

showList :: [TermNumber] -> ShowS

Eq TermNumber Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: TermNumber -> TermNumber -> Bool

(/=) :: TermNumber -> TermNumber -> Bool

Ord TermNumber Source # 
Instance details

Defined in Citeproc.Types

data TermForm Source #

Constructors

Long 
Short 
Verb 
VerbShort 
Symbol 

Instances

Instances details
Show TermForm Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> TermForm -> ShowS

show :: TermForm -> String

showList :: [TermForm] -> ShowS

Eq TermForm Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: TermForm -> TermForm -> Bool

(/=) :: TermForm -> TermForm -> Bool

Ord TermForm Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: TermForm -> TermForm -> Ordering

(<) :: TermForm -> TermForm -> Bool

(<=) :: TermForm -> TermForm -> Bool

(>) :: TermForm -> TermForm -> Bool

(>=) :: TermForm -> TermForm -> Bool

max :: TermForm -> TermForm -> TermForm

min :: TermForm -> TermForm -> TermForm

data Term Source #

Constructors

Term 

Instances

Instances details
Show Term Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Term -> ShowS

show :: Term -> String

showList :: [Term] -> ShowS

Eq Term Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Term -> Term -> Bool

(/=) :: Term -> Term -> Bool

Ord Term Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Term -> Term -> Ordering

(<) :: Term -> Term -> Bool

(<=) :: Term -> Term -> Bool

(>) :: Term -> Term -> Bool

(>=) :: Term -> Term -> Bool

max :: Term -> Term -> Term

min :: Term -> Term -> Term

data SortDirection Source #

Constructors

Ascending 
Descending 

Instances

Instances details
Show SortDirection Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> SortDirection -> ShowS

show :: SortDirection -> String

showList :: [SortDirection] -> ShowS

Eq SortDirection Source # 
Instance details

Defined in Citeproc.Types

data SortKey a Source #

Instances

Instances details
Show (SortKey a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> SortKey a -> ShowS

show :: SortKey a -> String

showList :: [SortKey a] -> ShowS

Eq (SortKey a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: SortKey a -> SortKey a -> Bool

(/=) :: SortKey a -> SortKey a -> Bool

data SortKeyValue Source #

Constructors

SortKeyValue SortDirection (Maybe [Text]) 

Instances

Instances details
Show SortKeyValue Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> SortKeyValue -> ShowS

show :: SortKeyValue -> String

showList :: [SortKeyValue] -> ShowS

Eq SortKeyValue Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: SortKeyValue -> SortKeyValue -> Bool

(/=) :: SortKeyValue -> SortKeyValue -> Bool

data LayoutOptions Source #

Constructors

LayoutOptions 

Instances

Instances details
Show LayoutOptions Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> LayoutOptions -> ShowS

show :: LayoutOptions -> String

showList :: [LayoutOptions] -> ShowS

Eq LayoutOptions Source # 
Instance details

Defined in Citeproc.Types

data Collapsing Source #

Instances

Instances details
Show Collapsing Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Collapsing -> ShowS

show :: Collapsing -> String

showList :: [Collapsing] -> ShowS

Eq Collapsing Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Collapsing -> Collapsing -> Bool

(/=) :: Collapsing -> Collapsing -> Bool

data Layout a Source #

Instances

Instances details
Show (Layout a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Layout a -> ShowS

show :: Layout a -> String

showList :: [Layout a] -> ShowS

Eq (Layout a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Layout a -> Layout a -> Bool

(/=) :: Layout a -> Layout a -> Bool

data Lang #

Constructors

Lang 

Fields

Instances

Instances details
Binary Lang 
Instance details

Defined in Text.Collate.Lang

Methods

put :: Lang -> Put

get :: Get Lang

putList :: [Lang] -> Put

IsString Lang 
Instance details

Defined in Text.Collate.Lang

Methods

fromString :: String -> Lang

Show Lang 
Instance details

Defined in Text.Collate.Lang

Methods

showsPrec :: Int -> Lang -> ShowS

show :: Lang -> String

showList :: [Lang] -> ShowS

Eq Lang 
Instance details

Defined in Text.Collate.Lang

Methods

(==) :: Lang -> Lang -> Bool

(/=) :: Lang -> Lang -> Bool

Ord Lang 
Instance details

Defined in Text.Collate.Lang

Methods

compare :: Lang -> Lang -> Ordering

(<) :: Lang -> Lang -> Bool

(<=) :: Lang -> Lang -> Bool

(>) :: Lang -> Lang -> Bool

(>=) :: Lang -> Lang -> Bool

max :: Lang -> Lang -> Lang

min :: Lang -> Lang -> Lang

Lift Lang 
Instance details

Defined in Text.Collate.Lang

Methods

lift :: Quote m => Lang -> m Exp

liftTyped :: forall (m :: Type -> Type). Quote m => Lang -> Code m Lang

parseLang :: Text -> Either String Lang #

renderLang :: Lang -> Text #

data Locale Source #

Defines locale-specific terms, punctuation styles, and date formats.

Constructors

Locale 

Fields

Instances

Instances details
Monoid Locale Source # 
Instance details

Defined in Citeproc.Types

Semigroup Locale Source # 
Instance details

Defined in Citeproc.Types

Methods

(<>) :: Locale -> Locale -> Locale

sconcat :: NonEmpty Locale -> Locale

stimes :: Integral b => b -> Locale -> Locale

Show Locale Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Locale -> ShowS

show :: Locale -> String

showList :: [Locale] -> ShowS

Eq Locale Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Locale -> Locale -> Bool

(/=) :: Locale -> Locale -> Bool

data NameHints Source #

Instances

Instances details
Show NameHints Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> NameHints -> ShowS

show :: NameHints -> String

showList :: [NameHints] -> ShowS

Eq NameHints Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: NameHints -> NameHints -> Bool

(/=) :: NameHints -> NameHints -> Bool

Ord NameHints Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: NameHints -> NameHints -> Ordering

(<) :: NameHints -> NameHints -> Bool

(<=) :: NameHints -> NameHints -> Bool

(>) :: NameHints -> NameHints -> Bool

(>=) :: NameHints -> NameHints -> Bool

max :: NameHints -> NameHints -> NameHints

min :: NameHints -> NameHints -> NameHints

data Reference a Source #

Encodes bibliographic data for a single work.

Constructors

Reference 

Fields

Instances

Instances details
Functor Reference Source # 
Instance details

Defined in Citeproc.Types

Methods

fmap :: (a -> b) -> Reference a -> Reference b

(<$) :: a -> Reference b -> Reference a

Foldable Reference Source # 
Instance details

Defined in Citeproc.Types

Methods

fold :: Monoid m => Reference m -> m

foldMap :: Monoid m => (a -> m) -> Reference a -> m

foldMap' :: Monoid m => (a -> m) -> Reference a -> m

foldr :: (a -> b -> b) -> b -> Reference a -> b

foldr' :: (a -> b -> b) -> b -> Reference a -> b

foldl :: (b -> a -> b) -> b -> Reference a -> b

foldl' :: (b -> a -> b) -> b -> Reference a -> b

foldr1 :: (a -> a -> a) -> Reference a -> a

foldl1 :: (a -> a -> a) -> Reference a -> a

toList :: Reference a -> [a]

null :: Reference a -> Bool

length :: Reference a -> Int

elem :: Eq a => a -> Reference a -> Bool

maximum :: Ord a => Reference a -> a

minimum :: Ord a => Reference a -> a

sum :: Num a => Reference a -> a

product :: Num a => Reference a -> a

Traversable Reference Source # 
Instance details

Defined in Citeproc.Types

Methods

traverse :: Applicative f => (a -> f b) -> Reference a -> f (Reference b)

sequenceA :: Applicative f => Reference (f a) -> f (Reference a)

mapM :: Monad m => (a -> m b) -> Reference a -> m (Reference b)

sequence :: Monad m => Reference (m a) -> m (Reference a)

(Eq a, FromJSON a) => FromJSON (Reference a) Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (Reference a)

parseJSONList :: Value -> Parser [Reference a]

omittedField :: Maybe (Reference a)

ToJSON a => ToJSON (Reference a) Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Reference a -> Value

toEncoding :: Reference a -> Encoding

toJSONList :: [Reference a] -> Value

toEncodingList :: [Reference a] -> Encoding

omitField :: Reference a -> Bool

Show a => Show (Reference a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Reference a -> ShowS

show :: Reference a -> String

showList :: [Reference a] -> ShowS

Eq a => Eq (Reference a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Reference a -> Reference a -> Bool

(/=) :: Reference a -> Reference a -> Bool

Ord a => Ord (Reference a) Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Reference a -> Reference a -> Ordering

(<) :: Reference a -> Reference a -> Bool

(<=) :: Reference a -> Reference a -> Bool

(>) :: Reference a -> Reference a -> Bool

(>=) :: Reference a -> Reference a -> Bool

max :: Reference a -> Reference a -> Reference a

min :: Reference a -> Reference a -> Reference a

newtype ReferenceMap a Source #

Constructors

ReferenceMap 

Fields

Instances

Instances details
Show a => Show (ReferenceMap a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> ReferenceMap a -> ShowS

show :: ReferenceMap a -> String

showList :: [ReferenceMap a] -> ShowS

makeReferenceMap :: [Reference a] -> ([Reference a], ReferenceMap a) Source #

Returns a pair consisting of the cleaned up list of references and a reference map. If the original reference list contains items with the same id, then the one that occurs last in the list is retained, and the others are omittedfrom the cleaned-up list.

data Val a Source #

Value associated with a certain variable in a bibliographic entry.

Constructors

TextVal Text

Plain text value

FancyVal a

Formatted value with parameterized type

NumVal Int

Numerical value

NamesVal [Name]

Structured names

DateVal Date

Structured date

SubstitutedVal

Value suppressed through substitution

Instances

Instances details
Functor Val Source # 
Instance details

Defined in Citeproc.Types

Methods

fmap :: (a -> b) -> Val a -> Val b

(<$) :: a -> Val b -> Val a

Foldable Val Source # 
Instance details

Defined in Citeproc.Types

Methods

fold :: Monoid m => Val m -> m

foldMap :: Monoid m => (a -> m) -> Val a -> m

foldMap' :: Monoid m => (a -> m) -> Val a -> m

foldr :: (a -> b -> b) -> b -> Val a -> b

foldr' :: (a -> b -> b) -> b -> Val a -> b

foldl :: (b -> a -> b) -> b -> Val a -> b

foldl' :: (b -> a -> b) -> b -> Val a -> b

foldr1 :: (a -> a -> a) -> Val a -> a

foldl1 :: (a -> a -> a) -> Val a -> a

toList :: Val a -> [a]

null :: Val a -> Bool

length :: Val a -> Int

elem :: Eq a => a -> Val a -> Bool

maximum :: Ord a => Val a -> a

minimum :: Ord a => Val a -> a

sum :: Num a => Val a -> a

product :: Num a => Val a -> a

Traversable Val Source # 
Instance details

Defined in Citeproc.Types

Methods

traverse :: Applicative f => (a -> f b) -> Val a -> f (Val b)

sequenceA :: Applicative f => Val (f a) -> f (Val a)

mapM :: Monad m => (a -> m b) -> Val a -> m (Val b)

sequence :: Monad m => Val (m a) -> m (Val a)

ToJSON a => ToJSON (Val a) Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Val a -> Value

toEncoding :: Val a -> Encoding

toJSONList :: [Val a] -> Value

toEncodingList :: [Val a] -> Encoding

omitField :: Val a -> Bool

Show a => Show (Val a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Val a -> ShowS

show :: Val a -> String

showList :: [Val a] -> ShowS

Eq a => Eq (Val a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Val a -> Val a -> Bool

(/=) :: Val a -> Val a -> Bool

Ord a => Ord (Val a) Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Val a -> Val a -> Ordering

(<) :: Val a -> Val a -> Bool

(<=) :: Val a -> Val a -> Bool

(>) :: Val a -> Val a -> Bool

(>=) :: Val a -> Val a -> Bool

max :: Val a -> Val a -> Val a

min :: Val a -> Val a -> Val a

valToText :: CiteprocOutput a => Val a -> Maybe Text Source #

data Variable Source #

Instances

Instances details
FromJSON Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser Variable

parseJSONList :: Value -> Parser [Variable]

omittedField :: Maybe Variable

FromJSONKey Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

fromJSONKey :: FromJSONKeyFunction Variable

fromJSONKeyList :: FromJSONKeyFunction [Variable]

ToJSON Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Variable -> Value

toEncoding :: Variable -> Encoding

toJSONList :: [Variable] -> Value

toEncodingList :: [Variable] -> Encoding

omitField :: Variable -> Bool

ToJSONKey Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSONKey :: ToJSONKeyFunction Variable

toJSONKeyList :: ToJSONKeyFunction [Variable]

Monoid Variable Source # 
Instance details

Defined in Citeproc.Types

Semigroup Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

(<>) :: Variable -> Variable -> Variable

sconcat :: NonEmpty Variable -> Variable

stimes :: Integral b => b -> Variable -> Variable

IsString Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

fromString :: String -> Variable

Show Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Variable -> ShowS

show :: Variable -> String

showList :: [Variable] -> ShowS

Eq Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Variable -> Variable -> Bool

(/=) :: Variable -> Variable -> Bool

Ord Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

compare :: Variable -> Variable -> Ordering

(<) :: Variable -> Variable -> Bool

(<=) :: Variable -> Variable -> Bool

(>) :: Variable -> Variable -> Bool

(>=) :: Variable -> Variable -> Bool

max :: Variable -> Variable -> Variable

min :: Variable -> Variable -> Variable

data Output a Source #

Instances

Instances details
Show a => Show (Output a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Output a -> ShowS

show :: Output a -> String

showList :: [Output a] -> ShowS

Eq a => Eq (Output a) Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Output a -> Output a -> Bool

(/=) :: Output a -> Output a -> Bool

Uniplate (Output a) Source # 
Instance details

Defined in Citeproc.Types

Methods

uniplate :: Output a -> (Str (Output a), Str (Output a) -> Output a)

descend :: (Output a -> Output a) -> Output a -> Output a

descendM :: Applicative m => (Output a -> m (Output a)) -> Output a -> m (Output a)

Biplate (Output a) (Output a) Source # 
Instance details

Defined in Citeproc.Types

Methods

biplate :: Output a -> (Str (Output a), Str (Output a) -> Output a)

descendBi :: (Output a -> Output a) -> Output a -> Output a

descendBiM :: Applicative m => (Output a -> m (Output a)) -> Output a -> m (Output a)

data Identifier Source #

Constructors

IdentDOI Text 
IdentPMCID Text 
IdentPMID Text 
IdentURL Text 

Instances

Instances details
Show Identifier Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Identifier -> ShowS

show :: Identifier -> String

showList :: [Identifier] -> ShowS

Eq Identifier Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Identifier -> Identifier -> Bool

(/=) :: Identifier -> Identifier -> Bool

fixShortDOI :: Text -> Text Source #

Deprecated: This function is no longer used and will be removed.

data Tag Source #

Instances

Instances details
Show Tag Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Tag -> ShowS

show :: Tag -> String

showList :: [Tag] -> ShowS

Eq Tag Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: Tag -> Tag -> Bool

(/=) :: Tag -> Tag -> Bool

readAsInt :: Text -> Maybe Int Source #

data VariableType Source #

Instances

Instances details
Show VariableType Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> VariableType -> ShowS

show :: VariableType -> String

showList :: [VariableType] -> ShowS

Eq VariableType Source # 
Instance details

Defined in Citeproc.Types

Methods

(==) :: VariableType -> VariableType -> Bool

(/=) :: VariableType -> VariableType -> Bool

data Abbreviations Source #

An abbreviations map. These are typically stored in a JSON serialization: for examples of the format, see https://github.com/citation-style-language/abbreviations. Abbreviations are substituted in the output when the variable and its content are matched by something in the abbreviations map.

Instances

Instances details
FromJSON Abbreviations Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser Abbreviations

parseJSONList :: Value -> Parser [Abbreviations]

omittedField :: Maybe Abbreviations

ToJSON Abbreviations Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Abbreviations -> Value

toEncoding :: Abbreviations -> Encoding

toJSONList :: [Abbreviations] -> Value

toEncodingList :: [Abbreviations] -> Encoding

omitField :: Abbreviations -> Bool

Show Abbreviations Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Abbreviations -> ShowS

show :: Abbreviations -> String

showList :: [Abbreviations] -> ShowS

Eq Abbreviations Source # 
Instance details

Defined in Citeproc.Types

Ord Abbreviations Source # 
Instance details

Defined in Citeproc.Types

lookupAbbreviation :: CiteprocOutput a => Variable -> Val a -> Abbreviations -> Maybe (Val a) Source #

Returns an abbreviation if the variable and its value match something in the abbreviations map.

data Result a Source #

Result of citation processing.

Constructors

Result 

Fields

  • resultCitations :: [a]

    List of formatted citations corresponding to the citations given to citeproc

  • resultBibliography :: [(Text, a)]

    List of formatted bibliography entries (if the style calls for a bibliography), each a pair consisting of the item identifier and the formatted entry

  • resultWarnings :: [Text]

    Warnings from citation processing

Instances

Instances details
Functor Result Source # 
Instance details

Defined in Citeproc.Types

Methods

fmap :: (a -> b) -> Result a -> Result b

(<$) :: a -> Result b -> Result a

Foldable Result Source # 
Instance details

Defined in Citeproc.Types

Methods

fold :: Monoid m => Result m -> m

foldMap :: Monoid m => (a -> m) -> Result a -> m

foldMap' :: Monoid m => (a -> m) -> Result a -> m

foldr :: (a -> b -> b) -> b -> Result a -> b

foldr' :: (a -> b -> b) -> b -> Result a -> b

foldl :: (b -> a -> b) -> b -> Result a -> b

foldl' :: (b -> a -> b) -> b -> Result a -> b

foldr1 :: (a -> a -> a) -> Result a -> a

foldl1 :: (a -> a -> a) -> Result a -> a

toList :: Result a -> [a]

null :: Result a -> Bool

length :: Result a -> Int

elem :: Eq a => a -> Result a -> Bool

maximum :: Ord a => Result a -> a

minimum :: Ord a => Result a -> a

sum :: Num a => Result a -> a

product :: Num a => Result a -> a

Traversable Result Source # 
Instance details

Defined in Citeproc.Types

Methods

traverse :: Applicative f => (a -> f b) -> Result a -> f (Result b)

sequenceA :: Applicative f => Result (f a) -> f (Result a)

mapM :: Monad m => (a -> m b) -> Result a -> m (Result b)

sequence :: Monad m => Result (m a) -> m (Result a)

FromJSON a => FromJSON (Result a) Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (Result a)

parseJSONList :: Value -> Parser [Result a]

omittedField :: Maybe (Result a)

ToJSON a => ToJSON (Result a) Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Result a -> Value

toEncoding :: Result a -> Encoding

toJSONList :: [Result a] -> Value

toEncodingList :: [Result a] -> Encoding

omitField :: Result a -> Bool

Show a => Show (Result a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Result a -> ShowS

show :: Result a -> String

showList :: [Result a] -> ShowS

data Inputs a Source #

Inputs for citation processing.

Constructors

Inputs 

Fields

Instances

Instances details
(FromJSON a, Eq a) => FromJSON (Inputs a) Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (Inputs a)

parseJSONList :: Value -> Parser [Inputs a]

omittedField :: Maybe (Inputs a)

ToJSON a => ToJSON (Inputs a) Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Inputs a -> Value

toEncoding :: Inputs a -> Encoding

toJSONList :: [Inputs a] -> Value

toEncodingList :: [Inputs a] -> Encoding

omitField :: Inputs a -> Bool

Show a => Show (Inputs a) Source # 
Instance details

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Inputs a -> ShowS

show :: Inputs a -> String

showList :: [Inputs a] -> ShowS