@@ -28,7 +28,7 @@ This module provides a standard way to deal with possible errors encounted
2828during parsing.
2929
3030-}
31−module Text.Pandoc.Error (PandocError(..), handleError,hush, mapLeft) where
31+module Text.Pandoc.Error (PandocError(..), handleError) where
3232
3333import Text.Parsec.Error
3434import Text.Parsec.Pos hiding (Line)
@@ -46,13 +46,6 @@ data PandocError = -- | Generic parse failure
4646instance Error PandocError where
4747 strMsg = ParseFailure
4848
49−mapLeft :: (a -> b) -> Either a c -> Either b c
50−mapLeft f (Left x) = Left (f x)
51−mapLeft _ (Right x) = Right x
52−
53−hush :: Either a b -> Maybe b
54−hush (Left _) = Nothing
55−hush (Right x) = Just x
5649
5750-- | An unsafe method to handle `PandocError`s.
5851handleError :: Either PandocError a -> a