git.iko.soy/typeable/pandoc
on master help sign in
Generic instance for PandocError.
commita66c1bf88e511b73c6237bf6e85b57c5756321b7 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 10 Dec 2016, 23:30 (10 years ago) parenta964b14
1 file changed+2−1
src/Text/Pandoc/Error.hs+2−1
src/Text/Pandoc/Error.hs+2−1
@@ -34,6 +34,7 @@ module Text.Pandoc.Error (PandocError(..), handleError) where
3434import Text.Parsec.Error
3535import Text.Parsec.Pos hiding (Line)
3636import Data.Generics (Typeable)
37+import GHC.Generics (Generic)
3738import Control.Exception (Exception)
3839import Text.Pandoc.Shared (err)
3940
@@ -44,7 +45,7 @@ data PandocError = PandocFileReadError FilePath
4445 | PandocSomeError String
4546 | PandocParseError String
4647 | PandocParsecError Input ParseError
47− deriving (Show, Typeable)
48+ deriving (Show, Typeable, Generic)
4849
4950
5051-- data PandocError = -- | Generic parse failure