citeproc-0.6.0.1: Generates citations and bibliography from CSL styles.
Safe HaskellSafe-Inferred
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).

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.

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

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]

ToJSON ItemId Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: ItemId -> Value

toEncoding :: ItemId -> Encoding

toJSONList :: [ItemId] -> Value

toEncodingList :: [ItemId] -> Encoding

Monoid ItemId Source # 
Instance details

Defined in Citeproc.Types

Semigroup ItemId Source # 
Instance details

Defined in Citeproc.Types

Show ItemId Source # 
Instance details

Defined in Citeproc.Types

Eq ItemId Source # 
Instance details

Defined in Citeproc.Types

Ord ItemId Source # 
Instance details

Defined in Citeproc.Types

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 => FromJSON (CitationItem a) Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (CitationItem a)

parseJSONList :: Value -> Parser [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

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

Defined in Citeproc.Types

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

Defined in Citeproc.Types

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

Defined in Citeproc.Types

data CitationItemType Source #

Constructors

AuthorOnly

e.g., Smith

SuppressAuthor

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

NormalCite

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

data Citation a Source #

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

Instances

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

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (Citation a)

parseJSONList :: Value -> Parser [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

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

Defined in Citeproc.Types

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

Defined in Citeproc.Types

Methods

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

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

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

Defined in Citeproc.Types

data Element a Source #

Constructors

Element (ElementType a) Formatting 

Instances

Instances details
Show (Element a) Source # 
Instance details

Defined in Citeproc.Types

Eq (Element a) Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

data Pluralize Source #

Instances

Instances details
Show Pluralize Source # 
Instance details

Defined in Citeproc.Types

Eq Pluralize Source # 
Instance details

Defined in Citeproc.Types

data Date Source #

Instances

Instances details
FromJSON Date Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser Date

parseJSONList :: Value -> Parser [Date]

ToJSON Date Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Date -> Value

toEncoding :: Date -> Encoding

toJSONList :: [Date] -> Value

toEncodingList :: [Date] -> Encoding

Show Date Source # 
Instance details

Defined in Citeproc.Types

Eq Date Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

Ord Date Source # 
Instance details

Defined in Citeproc.Types

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]

ToJSON DateParts Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: DateParts -> Value

toEncoding :: DateParts -> Encoding

toJSONList :: [DateParts] -> Value

toEncodingList :: [DateParts] -> Encoding

Show DateParts Source # 
Instance details

Defined in Citeproc.Types

Eq DateParts Source # 
Instance details

Defined in Citeproc.Types

Ord DateParts 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

Eq DPName Source # 
Instance details

Defined in Citeproc.Types

Ord DPName Source # 
Instance details

Defined in Citeproc.Types

data DPForm Source #

Instances

Instances details
Show DPForm Source # 
Instance details

Defined in Citeproc.Types

Eq DPForm Source # 
Instance details

Defined in Citeproc.Types

data DP Source #

Instances

Instances details
Show DP Source # 
Instance details

Defined in Citeproc.Types

Eq DP Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

data VariableForm Source #

Constructors

ShortForm 
LongForm 

Instances

Instances details
Show VariableForm Source # 
Instance details

Defined in Citeproc.Types

Eq VariableForm Source # 
Instance details

Defined in Citeproc.Types

data TextType Source #

Instances

Instances details
Show TextType Source # 
Instance details

Defined in Citeproc.Types

Eq TextType Source # 
Instance details

Defined in Citeproc.Types

data NameForm Source #

Constructors

LongName 
ShortName 
CountName 

Instances

Instances details
Show NameForm Source # 
Instance details

Defined in Citeproc.Types

Eq NameForm Source # 
Instance details

Defined in Citeproc.Types

data Name Source #

Instances

Instances details
FromJSON Name Source # 
Instance details

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser Name

parseJSONList :: Value -> Parser [Name]

ToJSON Name Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSON :: Name -> Value

toEncoding :: Name -> Encoding

toJSONList :: [Name] -> Value

toEncodingList :: [Name] -> Encoding

Show Name Source # 
Instance details

Defined in Citeproc.Types

Eq Name Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

Ord Name Source # 
Instance details

Defined in Citeproc.Types

data Match Source #

Constructors

MatchAll 
MatchAny 
MatchNone 

Instances

Instances details
Show Match Source # 
Instance details

Defined in Citeproc.Types

Eq Match Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

data FontStyle Source #

Instances

Instances details
Show FontStyle Source # 
Instance details

Defined in Citeproc.Types

Eq FontStyle Source # 
Instance details

Defined in Citeproc.Types

data FontVariant Source #

Instances

Instances details
Show FontVariant Source # 
Instance details

Defined in Citeproc.Types

Eq FontVariant Source # 
Instance details

Defined in Citeproc.Types

data FontWeight Source #

Instances

Instances details
Show FontWeight Source # 
Instance details

Defined in Citeproc.Types

Eq FontWeight Source # 
Instance details

Defined in Citeproc.Types

data TextCase Source #

Instances

Instances details
Show TextCase Source # 
Instance details

Defined in Citeproc.Types

Eq TextCase Source # 
Instance details

Defined in Citeproc.Types

data Style a Source #

Instances

Instances details
Show (Style a) Source # 
Instance details

Defined in Citeproc.Types

Eq (Style a) Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

data Term Source #

Instances

Instances details
Show Term Source # 
Instance details

Defined in Citeproc.Types

Eq Term Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

Ord Term Source # 
Instance details

Defined in Citeproc.Types

data SortKey a Source #

Instances

Instances details
Show (SortKey a) Source # 
Instance details

Defined in Citeproc.Types

Eq (SortKey a) Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

data SortKeyValue Source #

Instances

Instances details
Show SortKeyValue Source # 
Instance details

Defined in Citeproc.Types

Eq SortKeyValue Source # 
Instance details

Defined in Citeproc.Types

data Layout a Source #

Instances

Instances details
Show (Layout a) Source # 
Instance details

Defined in Citeproc.Types

Eq (Layout a) Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

data Lang Source #

Represents a BCP 47 language tag (https://tools.ietf.org/html/bcp47).

Instances

Instances details
IsString Lang 
Instance details

Defined in Text.Collate.Lang

Show Lang 
Instance details

Defined in Text.Collate.Lang

Binary Lang 
Instance details

Defined in Text.Collate.Lang

Eq Lang 
Instance details

Defined in Text.Collate.Lang

Methods

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

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

Ord Lang 
Instance details

Defined in Text.Collate.Lang

Lift Lang 
Instance details

Defined in Text.Collate.Lang

Methods

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

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

parseLang :: Text -> Either String Lang Source #

Parse a BCP 47 language tag as a Lang.

renderLang :: Lang -> Text Source #

Render a Lang in BCP 47 form.

data Locale Source #

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

Instances

Instances details
Monoid Locale Source # 
Instance details

Defined in Citeproc.Types

Semigroup Locale Source # 
Instance details

Defined in Citeproc.Types

Show Locale Source # 
Instance details

Defined in Citeproc.Types

Eq Locale Source # 
Instance details

Defined in Citeproc.Types

data Reference a Source #

Encodes bibliographic data for a single work.

Constructors

Reference 

Fields

Instances

Instances details
Foldable Reference Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

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

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

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

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

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

toList :: Reference a -> [a] Source #

null :: Reference a -> Bool Source #

length :: Reference a -> Int Source #

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

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

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

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

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

Traversable Reference Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

Functor Reference Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

(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]

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

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

Defined in Citeproc.Types

newtype ReferenceMap a Source #

Constructors

ReferenceMap 

Instances

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

Defined in Citeproc.Types

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

Instances

Instances details
Foldable Val Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

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

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

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

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

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

toList :: Val a -> [a] Source #

null :: Val a -> Bool Source #

length :: Val a -> Int Source #

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

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

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

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

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

Traversable Val Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

Functor Val Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

Defined in Citeproc.Types

Methods

showsPrec :: Int -> Val a -> ShowS Source #

show :: Val a -> String Source #

showList :: [Val a] -> ShowS Source #

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

Defined in Citeproc.Types

Methods

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

(/=) :: Val a -> Val a -> Bool 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]

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

ToJSONKey Variable Source # 
Instance details

Defined in Citeproc.Types

Methods

toJSONKey :: ToJSONKeyFunction Variable

toJSONKeyList :: ToJSONKeyFunction [Variable]

IsString Variable Source # 
Instance details

Defined in Citeproc.Types

Monoid Variable Source # 
Instance details

Defined in Citeproc.Types

Semigroup Variable Source # 
Instance details

Defined in Citeproc.Types

Show Variable Source # 
Instance details

Defined in Citeproc.Types

Eq Variable Source # 
Instance details

Defined in Citeproc.Types

Ord Variable Source # 
Instance details

Defined in Citeproc.Types

data Output a Source #

Instances

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

Defined in Citeproc.Types

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

Defined in Citeproc.Types

Methods

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

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

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 #

Instances

Instances details
Show Identifier Source # 
Instance details

Defined in Citeproc.Types

Eq Identifier Source # 
Instance details

Defined in Citeproc.Types

data Tag Source #

Instances

Instances details
Show Tag Source # 
Instance details

Defined in Citeproc.Types

Eq Tag Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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.

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
Foldable Result Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

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

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

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

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

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

toList :: Result a -> [a] Source #

null :: Result a -> Bool Source #

length :: Result a -> Int Source #

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

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

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

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

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

Traversable Result Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

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

Functor Result Source # 
Instance details

Defined in Citeproc.Types

Methods

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

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

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

Defined in Citeproc.Types

Methods

parseJSON :: Value -> Parser (Result a)

parseJSONList :: Value -> Parser [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

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

Defined in Citeproc.Types

data Inputs a Source #

Inputs for citation processing.

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]

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

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

Defined in Citeproc.Types