pandoc-2.9.2.1: Conversion between markup formats
CopyrightCopyright (C) 2006-2020 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Error

Description

This module provides a standard way to deal with possible errors encounted during parsing.

Synopsis

Documentation

data PandocError #

Instances

Instances details
Show PandocError # 
Instance details

Defined in Text.Pandoc.Error

Methods

showsPrec :: Int -> PandocError -> ShowS #

show :: PandocError -> String #

showList :: [PandocError] -> ShowS #

Generic PandocError # 
Instance details

Defined in Text.Pandoc.Error

Associated Types

type Rep PandocError :: Type -> Type #

Exception PandocError # 
Instance details

Defined in Text.Pandoc.Error

Methods

toException :: PandocError -> SomeException

fromException :: SomeException -> Maybe PandocError

displayException :: PandocError -> String

MonadError PandocError PandocPure 
Instance details

Defined in Text.Pandoc.Class.PandocPure

MonadError PandocError PandocIO 
Instance details

Defined in Text.Pandoc.Class.PandocIO

type Rep PandocError # 
Instance details

Defined in Text.Pandoc.Error

handleError :: Either PandocError a -> IO a #

Handle PandocError by exiting with an error message.