aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Error.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Error.hs')
-rw-r--r--src/Text/Pandoc/Error.hs11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs
index b624f4cb0..55b2d981a 100644
--- a/src/Text/Pandoc/Error.hs
+++ b/src/Text/Pandoc/Error.hs
@@ -29,7 +29,9 @@ This module provides a standard way to deal with possible errors encounted
during parsing.
-}
-module Text.Pandoc.Error (PandocError(..), handleError) where
+module Text.Pandoc.Error (
+ PandocError(..),
+ handleError) where
import Text.Parsec.Error
import Text.Parsec.Pos hiding (Line)
@@ -47,13 +49,6 @@ data PandocError = PandocFileReadError FilePath
| PandocParsecError Input ParseError
deriving (Show, Typeable, Generic)
-
--- data PandocError = -- | Generic parse failure
--- ParseFailure String
--- -- | Error thrown by a Parsec parser
--- | ParsecError Input ParseError
--- deriving (Show, Typeable, Generic)
-
instance Exception PandocError
-- | Handle PandocError by exiting with an error message.