Generic instance for PandocError.
This commit is contained in:
parent
a964b14475
commit
a66c1bf88e
1 changed files with 2 additions and 1 deletions
|
@ -34,6 +34,7 @@ module Text.Pandoc.Error (PandocError(..), handleError) where
|
|||
import Text.Parsec.Error
|
||||
import Text.Parsec.Pos hiding (Line)
|
||||
import Data.Generics (Typeable)
|
||||
import GHC.Generics (Generic)
|
||||
import Control.Exception (Exception)
|
||||
import Text.Pandoc.Shared (err)
|
||||
|
||||
|
@ -44,7 +45,7 @@ data PandocError = PandocFileReadError FilePath
|
|||
| PandocSomeError String
|
||||
| PandocParseError String
|
||||
| PandocParsecError Input ParseError
|
||||
deriving (Show, Typeable)
|
||||
deriving (Show, Typeable, Generic)
|
||||
|
||||
|
||||
-- data PandocError = -- | Generic parse failure
|
||||
|
|
Loading…
Add table
Reference in a new issue