Copyright | Copyright (C) 2006-2024 John MacFarlane |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | John MacFarlane <jgm@berkeley.edu> |
Stability | alpha |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Text.Pandoc.Logging
Description
This module provides data types and functions for warnings and info messages.
Synopsis
- data Verbosity
- data LogMessage
- = SkippedContent Text SourcePos
- | IgnoredElement Text
- | DuplicateLinkReference Text SourcePos
- | DuplicateNoteReference Text SourcePos
- | NoteDefinedButNotUsed Text SourcePos
- | DuplicateIdentifier Text SourcePos
- | ReferenceNotFound Text SourcePos
- | CircularReference Text SourcePos
- | UndefinedToggle Text SourcePos
- | ParsingUnescaped Text SourcePos
- | CouldNotLoadIncludeFile Text SourcePos
- | CouldNotParseIncludeFile Text SourcePos
- | MacroAlreadyDefined Text SourcePos
- | InlineNotRendered Inline
- | BlockNotRendered Block
- | DocxParserWarning Text
- | PowerpointTemplateWarning Text
- | IgnoredIOError Text
- | CouldNotFetchResource Text Text
- | CouldNotDetermineImageSize Text Text
- | CouldNotConvertImage Text Text
- | CouldNotDetermineMimeType Text
- | CouldNotConvertTeXMath Text Text
- | CouldNotParseCSS Text
- | Fetching Text
- | Extracting Text
- | LoadedResource FilePath FilePath
- | ScriptingInfo Text (Maybe SourcePos)
- | ScriptingWarning Text (Maybe SourcePos)
- | NoTitleElement Text
- | NoLangSpecified
- | InvalidLang Text
- | CouldNotHighlight Text
- | MissingCharacter Text
- | Deprecated Text Text
- | NoTranslation Text
- | CouldNotLoadTranslations Text Text
- | UnusualConversion Text
- | UnexpectedXmlElement Text Text
- | UnknownOrgExportOption Text
- | CouldNotDeduceFormat [Text] Text
- | RunningFilter FilePath
- | FilterCompleted FilePath Integer
- | CiteprocWarning Text
- | ATXHeadingInLHS Int Text
- | EnvironmentVariableUndefined Text
- | DuplicateAttribute Text Text
- | NotUTF8Encoded FilePath
- | MakePDFInfo Text Text
- | MakePDFWarning Text
- | UnclosedDiv SourcePos SourcePos
- | UnsupportedCodePage Int
- | YamlWarning SourcePos Text
- encodeLogMessages :: [LogMessage] -> ByteString
- showLogMessage :: LogMessage -> Text
- messageVerbosity :: LogMessage -> Verbosity
Documentation
Verbosity level.
Instances
FromJSON Verbosity Source # | |||||
Defined in Text.Pandoc.Logging | |||||
ToJSON Verbosity Source # | |||||
Data Verbosity Source # | |||||
Defined in Text.Pandoc.Logging Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Verbosity -> c Verbosity # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Verbosity # toConstr :: Verbosity -> Constr # dataTypeOf :: Verbosity -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Verbosity) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Verbosity) # gmapT :: (forall b. Data b => b -> b) -> Verbosity -> Verbosity # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Verbosity -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Verbosity -> r # gmapQ :: (forall d. Data d => d -> u) -> Verbosity -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Verbosity -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Verbosity -> m Verbosity # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Verbosity -> m Verbosity # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Verbosity -> m Verbosity # | |||||
Bounded Verbosity Source # | |||||
Enum Verbosity Source # | |||||
Defined in Text.Pandoc.Logging Methods succ :: Verbosity -> Verbosity # pred :: Verbosity -> Verbosity # fromEnum :: Verbosity -> Int # enumFrom :: Verbosity -> [Verbosity] # enumFromThen :: Verbosity -> Verbosity -> [Verbosity] # enumFromTo :: Verbosity -> Verbosity -> [Verbosity] # enumFromThenTo :: Verbosity -> Verbosity -> Verbosity -> [Verbosity] # | |||||
Generic Verbosity Source # | |||||
Defined in Text.Pandoc.Logging Associated Types
| |||||
Read Verbosity Source # | |||||
Show Verbosity Source # | |||||
Eq Verbosity Source # | |||||
Ord Verbosity Source # | |||||
type Rep Verbosity Source # | |||||
Defined in Text.Pandoc.Logging type Rep Verbosity = D1 ('MetaData "Verbosity" "Text.Pandoc.Logging" "pandoc-3.7.0.1-7RIEUq3CJpwBTELIbnz3b6" 'False) (C1 ('MetaCons "ERROR" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WARNING" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "INFO" 'PrefixI 'False) (U1 :: Type -> Type))) |
data LogMessage Source #
Constructors
Instances
encodeLogMessages :: [LogMessage] -> ByteString Source #
showLogMessage :: LogMessage -> Text Source #