pandoc-citeproc-0.17.0.1: Supports using pandoc with citeproc
Copyright(c) Andrea Rossato
LicenseBSD-style (see LICENSE)
MaintainerAndrea Rossato <andrea.rossato@unitn.it>
Stabilityunstable
Portabilityunportable
Safe HaskellNone
LanguageHaskell2010

Text.CSL.Reference

Description

The Reference type

Synopsis

Documentation

newtype Literal Source #

Constructors

Literal 

Fields

Instances

Instances details
Eq Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(==) :: Literal -> Literal -> Bool

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

Data Literal Source # 
Instance details

Defined in Text.CSL.Reference

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 :: forall r r'. (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 Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS Literal

readList :: ReadS [Literal]

readPrec :: ReadPrec Literal

readListPrec :: ReadPrec [Literal]

Show Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> Literal -> ShowS

show :: Literal -> String

showList :: [Literal] -> ShowS

IsString Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

fromString :: String -> Literal

Generic Literal Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep Literal :: Type -> Type

Methods

from :: Literal -> Rep Literal x

to :: Rep Literal x -> Literal

Semigroup Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(<>) :: Literal -> Literal -> Literal

sconcat :: NonEmpty Literal -> Literal

stimes :: Integral b => b -> Literal -> Literal

Monoid Literal Source # 
Instance details

Defined in Text.CSL.Reference

FromJSON Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser Literal

parseJSONList :: Value -> Parser [Literal]

ToJSON Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toJSON :: Literal -> Value

toEncoding :: Literal -> Encoding

toJSONList :: [Literal] -> Value

toEncodingList :: [Literal] -> Encoding

ToYaml Literal Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: Literal -> YamlBuilder

type Rep Literal Source # 
Instance details

Defined in Text.CSL.Reference

type Rep Literal = D1 ('MetaData "Literal" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'True) (C1 ('MetaCons "Literal" 'PrefixI 'True) (S1 ('MetaSel ('Just "unLiteral") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Value Source #

An existential type to wrap the different types a Reference is made of. This way we can create a map to make queries easier.

Constructors

forall a.Data a => Value a 

Instances

Instances details
Show Value Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> Value -> ShowS

show :: Value -> String

showList :: [Value] -> ShowS

type ReferenceMap = [(Text, Value)] Source #

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

data Empty Source #

Constructors

Empty 

Instances

Instances details
Data Empty Source # 
Instance details

Defined in Text.CSL.Reference

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 :: forall r r'. (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 Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep Empty :: Type -> Type

Methods

from :: Empty -> Rep Empty x

to :: Rep Empty x -> Empty

type Rep Empty Source # 
Instance details

Defined in Text.CSL.Reference

type Rep Empty = D1 ('MetaData "Empty" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'False) (C1 ('MetaCons "Empty" 'PrefixI 'False) (U1 :: Type -> Type))

data Season Source #

Constructors

Spring 
Summer 
Autumn 
Winter 
RawSeason Text 

Instances

Instances details
Eq Season Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(==) :: Season -> Season -> Bool

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

Data Season Source # 
Instance details

Defined in Text.CSL.Reference

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Season -> c Season

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Season

toConstr :: Season -> Constr

dataTypeOf :: Season -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Season)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Season)

gmapT :: (forall b. Data b => b -> b) -> Season -> Season

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Season -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Season -> r

gmapQ :: (forall d. Data d => d -> u) -> Season -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> Season -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Season -> m Season

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Season -> m Season

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Season -> m Season

Read Season Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS Season

readList :: ReadS [Season]

readPrec :: ReadPrec Season

readListPrec :: ReadPrec [Season]

Show Season Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> Season -> ShowS

show :: Season -> String

showList :: [Season] -> ShowS

Generic Season Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep Season :: Type -> Type

Methods

from :: Season -> Rep Season x

to :: Rep Season x -> Season

ToYaml Season Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: Season -> YamlBuilder

type Rep Season Source # 
Instance details

Defined in Text.CSL.Reference

type Rep Season = D1 ('MetaData "Season" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'False) ((C1 ('MetaCons "Spring" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Summer" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Autumn" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Winter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RawSeason" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

seasonToInt :: Season -> Maybe Int Source #

data RefDate Source #

Constructors

RefDate 

Fields

Instances

Instances details
Eq RefDate Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(==) :: RefDate -> RefDate -> Bool

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

Data RefDate Source # 
Instance details

Defined in Text.CSL.Reference

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 :: forall r r'. (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 Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS RefDate

readList :: ReadS [RefDate]

readPrec :: ReadPrec RefDate

readListPrec :: ReadPrec [RefDate]

Show RefDate Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> RefDate -> ShowS

show :: RefDate -> String

showList :: [RefDate] -> ShowS

Generic RefDate Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep RefDate :: Type -> Type

Methods

from :: RefDate -> Rep RefDate x

to :: Rep RefDate x -> RefDate

FromJSON RefDate Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser RefDate

parseJSONList :: Value -> Parser [RefDate]

ToYaml RefDate Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: RefDate -> YamlBuilder

FromJSON [RefDate] Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser [RefDate]

parseJSONList :: Value -> Parser [[RefDate]]

ToJSON [RefDate] Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toJSON :: [RefDate] -> Value

toEncoding :: [RefDate] -> Encoding

toJSONList :: [[RefDate]] -> Value

toEncodingList :: [[RefDate]] -> Encoding

type Rep RefDate Source # 
Instance details

Defined in Text.CSL.Reference

type Rep RefDate = D1 ('MetaData "RefDate" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'False) (C1 ('MetaCons "RefDate" 'PrefixI 'True) ((S1 ('MetaSel ('Just "year") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "month") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "season") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Season)))) :*: (S1 ('MetaSel ('Just "day") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "other") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: S1 ('MetaSel ('Just "circa") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data RefType Source #

Instances

Instances details
Eq RefType Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(==) :: RefType -> RefType -> Bool

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

Data RefType Source # 
Instance details

Defined in Text.CSL.Reference

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 :: forall r r'. (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 Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS RefType

readList :: ReadS [RefType]

readPrec :: ReadPrec RefType

readListPrec :: ReadPrec [RefType]

Show RefType Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> RefType -> ShowS

show :: RefType -> String

showList :: [RefType] -> ShowS

Generic RefType Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep RefType :: Type -> Type

Methods

from :: RefType -> Rep RefType x

to :: Rep RefType x -> RefType

FromJSON RefType Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser RefType

parseJSONList :: Value -> Parser [RefType]

ToJSON RefType Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toJSON :: RefType -> Value

toEncoding :: RefType -> Encoding

toJSONList :: [RefType] -> Value

toEncodingList :: [RefType] -> Encoding

ToYaml RefType Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: RefType -> YamlBuilder

type Rep RefType Source # 
Instance details

Defined in Text.CSL.Reference

type Rep RefType = D1 ('MetaData "RefType" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'False) (((((C1 ('MetaCons "NoType" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Article" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ArticleMagazine" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ArticleNewspaper" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ArticleJournal" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Bill" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Book" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Broadcast" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Chapter" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "Dataset" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Entry" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "EntryDictionary" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EntryEncyclopedia" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Figure" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Graphic" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Interview" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Legislation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LegalCase" 'PrefixI 'False) (U1 :: Type -> Type)))))) :+: ((((C1 ('MetaCons "Manuscript" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Map" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MotionPicture" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MusicalScore" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Pamphlet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PaperConference" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Patent" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Post" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PostWeblog" 'PrefixI 'False) (U1 :: Type -> Type))))) :+: (((C1 ('MetaCons "PersonalCommunication" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Report" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Review" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ReviewBook" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Song" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Speech" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Thesis" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Treaty" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Webpage" 'PrefixI 'False) (U1 :: Type -> Type)))))))

newtype CNum Source #

Constructors

CNum 

Fields

Instances

Instances details
Eq CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(==) :: CNum -> CNum -> Bool

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

Data CNum Source # 
Instance details

Defined in Text.CSL.Reference

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 :: forall r r'. (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 Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(+) :: CNum -> CNum -> CNum

(-) :: CNum -> CNum -> CNum

(*) :: CNum -> CNum -> CNum

negate :: CNum -> CNum

abs :: CNum -> CNum

signum :: CNum -> CNum

fromInteger :: Integer -> CNum

Ord CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

compare :: CNum -> CNum -> Ordering

(<) :: CNum -> CNum -> Bool

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

(>) :: CNum -> CNum -> Bool

(>=) :: CNum -> CNum -> Bool

max :: CNum -> CNum -> CNum

min :: CNum -> CNum -> CNum

Read CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS CNum

readList :: ReadS [CNum]

readPrec :: ReadPrec CNum

readListPrec :: ReadPrec [CNum]

Show CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> CNum -> ShowS

show :: CNum -> String

showList :: [CNum] -> ShowS

Generic CNum Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep CNum :: Type -> Type

Methods

from :: CNum -> Rep CNum x

to :: Rep CNum x -> CNum

FromJSON CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser CNum

parseJSONList :: Value -> Parser [CNum]

ToJSON CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toJSON :: CNum -> Value

toEncoding :: CNum -> Encoding

toJSONList :: [CNum] -> Value

toEncodingList :: [CNum] -> Encoding

ToYaml CNum Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: CNum -> YamlBuilder

type Rep CNum Source # 
Instance details

Defined in Text.CSL.Reference

type Rep CNum = D1 ('MetaData "CNum" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'True) (C1 ('MetaCons "CNum" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCNum") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

newtype CLabel Source #

Constructors

CLabel 

Fields

Instances

Instances details
Eq CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(==) :: CLabel -> CLabel -> Bool

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

Data CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CLabel -> c CLabel

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CLabel

toConstr :: CLabel -> Constr

dataTypeOf :: CLabel -> DataType

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CLabel)

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CLabel)

gmapT :: (forall b. Data b => b -> b) -> CLabel -> CLabel

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CLabel -> r

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CLabel -> r

gmapQ :: (forall d. Data d => d -> u) -> CLabel -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> CLabel -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CLabel -> m CLabel

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CLabel -> m CLabel

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CLabel -> m CLabel

Read CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS CLabel

readList :: ReadS [CLabel]

readPrec :: ReadPrec CLabel

readListPrec :: ReadPrec [CLabel]

Show CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> CLabel -> ShowS

show :: CLabel -> String

showList :: [CLabel] -> ShowS

Generic CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep CLabel :: Type -> Type

Methods

from :: CLabel -> Rep CLabel x

to :: Rep CLabel x -> CLabel

Semigroup CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

(<>) :: CLabel -> CLabel -> CLabel

sconcat :: NonEmpty CLabel -> CLabel

stimes :: Integral b => b -> CLabel -> CLabel

Monoid CLabel Source # 
Instance details

Defined in Text.CSL.Reference

FromJSON CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser CLabel

parseJSONList :: Value -> Parser [CLabel]

ToJSON CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toJSON :: CLabel -> Value

toEncoding :: CLabel -> Encoding

toJSONList :: [CLabel] -> Value

toEncodingList :: [CLabel] -> Encoding

ToYaml CLabel Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: CLabel -> YamlBuilder

type Rep CLabel Source # 
Instance details

Defined in Text.CSL.Reference

type Rep CLabel = D1 ('MetaData "CLabel" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'True) (C1 ('MetaCons "CLabel" 'PrefixI 'True) (S1 ('MetaSel ('Just "unCLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data Reference Source #

The Reference record.

Constructors

Reference 

Fields

Instances

Instances details
Eq Reference Source # 
Instance details

Defined in Text.CSL.Reference

Methods

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

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

Data Reference Source # 
Instance details

Defined in Text.CSL.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 :: forall r r'. (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 Source # 
Instance details

Defined in Text.CSL.Reference

Methods

readsPrec :: Int -> ReadS Reference

readList :: ReadS [Reference]

readPrec :: ReadPrec Reference

readListPrec :: ReadPrec [Reference]

Show Reference Source # 
Instance details

Defined in Text.CSL.Reference

Methods

showsPrec :: Int -> Reference -> ShowS

show :: Reference -> String

showList :: [Reference] -> ShowS

Generic Reference Source # 
Instance details

Defined in Text.CSL.Reference

Associated Types

type Rep Reference :: Type -> Type

Methods

from :: Reference -> Rep Reference x

to :: Rep Reference x -> Reference

FromJSON Reference Source # 
Instance details

Defined in Text.CSL.Reference

Methods

parseJSON :: Value -> Parser Reference

parseJSONList :: Value -> Parser [Reference]

ToJSON Reference Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toJSON :: Reference -> Value

toEncoding :: Reference -> Encoding

toJSONList :: [Reference] -> Value

toEncodingList :: [Reference] -> Encoding

ToYaml Reference Source # 
Instance details

Defined in Text.CSL.Reference

Methods

toYaml :: Reference -> YamlBuilder

type Rep Reference Source # 
Instance details

Defined in Text.CSL.Reference

type Rep Reference = D1 ('MetaData "Reference" "Text.CSL.Reference" "pandoc-citeproc-0.17.0.1-3LQXieIRV5qCWrtGHiqAaw" 'False) (C1 ('MetaCons "Reference" 'PrefixI 'True) ((((((S1 ('MetaSel ('Just "refId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: S1 ('MetaSel ('Just "refOtherIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Literal])) :*: (S1 ('MetaSel ('Just "refType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 RefType) :*: S1 ('MetaSel ('Just "author") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]))) :*: ((S1 ('MetaSel ('Just "editor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: S1 ('MetaSel ('Just "translator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent])) :*: (S1 ('MetaSel ('Just "recipient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: (S1 ('MetaSel ('Just "interviewer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: S1 ('MetaSel ('Just "composer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]))))) :*: (((S1 ('MetaSel ('Just "director") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: S1 ('MetaSel ('Just "illustrator") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent])) :*: (S1 ('MetaSel ('Just "originalAuthor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: (S1 ('MetaSel ('Just "containerAuthor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: S1 ('MetaSel ('Just "collectionEditor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent])))) :*: ((S1 ('MetaSel ('Just "editorialDirector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent]) :*: S1 ('MetaSel ('Just "reviewedAuthor") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Agent])) :*: (S1 ('MetaSel ('Just "issued") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RefDate]) :*: (S1 ('MetaSel ('Just "eventDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RefDate]) :*: S1 ('MetaSel ('Just "accessed") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RefDate])))))) :*: ((((S1 ('MetaSel ('Just "container") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RefDate]) :*: S1 ('MetaSel ('Just "originalDate") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RefDate])) :*: (S1 ('MetaSel ('Just "submitted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [RefDate]) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted))) :*: ((S1 ('MetaSel ('Just "titleShort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "reviewedTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "containerTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: (S1 ('MetaSel ('Just "volumeTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "collectionTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted))))) :*: (((S1 ('MetaSel ('Just "containerTitleShort") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "collectionNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "originalTitle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: (S1 ('MetaSel ('Just "publisher") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "originalPublisher") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)))) :*: ((S1 ('MetaSel ('Just "publisherPlace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "originalPublisherPlace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "authority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: (S1 ('MetaSel ('Just "jurisdiction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "archive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted))))))) :*: (((((S1 ('MetaSel ('Just "archivePlace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "archiveLocation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "event") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "eventPlace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted))) :*: ((S1 ('MetaSel ('Just "page") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "pageFirst") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "numberOfPages") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: (S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "volume") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted))))) :*: (((S1 ('MetaSel ('Just "numberOfVolumes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "issue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "chapterNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: (S1 ('MetaSel ('Just "medium") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)))) :*: ((S1 ('MetaSel ('Just "edition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "section") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: (S1 ('MetaSel ('Just "genre") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "note") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)))))) :*: ((((S1 ('MetaSel ('Just "annote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "abstract") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted)) :*: (S1 ('MetaSel ('Just "keyword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted))) :*: ((S1 ('MetaSel ('Just "references") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Formatted) :*: S1 ('MetaSel ('Just "url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal)) :*: (S1 ('MetaSel ('Just "doi") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: (S1 ('MetaSel ('Just "isbn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: S1 ('MetaSel ('Just "issn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal))))) :*: (((S1 ('MetaSel ('Just "pmcid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: S1 ('MetaSel ('Just "pmid") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal)) :*: (S1 ('MetaSel ('Just "callNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal) :*: S1 ('MetaSel ('Just "scale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal)))) :*: ((S1 ('MetaSel ('Just "categories") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Literal]) :*: S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Literal)) :*: (S1 ('MetaSel ('Just "citationNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CNum) :*: (S1 ('MetaSel ('Just "firstReferenceNoteNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "citationLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 CLabel)))))))))

numericVars :: [Text] Source #

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

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