aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-12-10 23:30:42 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:41 +0100
commita66c1bf88e511b73c6237bf6e85b57c5756321b7 (patch)
treefb7c332e7009a951af13d105de673044a31458d3 /src/Text
parenta964b1447554d9f0074723db52faf086984d0c28 (diff)
downloadpandoc-a66c1bf88e511b73c6237bf6e85b57c5756321b7.tar.gz
Generic instance for PandocError.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Error.hs3
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