diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-12-10 23:30:42 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:41 +0100 |
commit | a66c1bf88e511b73c6237bf6e85b57c5756321b7 (patch) | |
tree | fb7c332e7009a951af13d105de673044a31458d3 /src/Text/Pandoc | |
parent | a964b1447554d9f0074723db52faf086984d0c28 (diff) | |
download | pandoc-a66c1bf88e511b73c6237bf6e85b57c5756321b7.tar.gz |
Generic instance for PandocError.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Error.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index f76749a80..b624f4cb0 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -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 |