From 7ea16ad058f6b2854cfae5cc241de95df601f7d7 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Thu, 1 Sep 2016 06:33:29 -0400 Subject: Actually remove T/P/Compat/Except. --- src/Text/Pandoc/Compat/Except.hs | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/Text/Pandoc/Compat/Except.hs (limited to 'src') diff --git a/src/Text/Pandoc/Compat/Except.hs b/src/Text/Pandoc/Compat/Except.hs deleted file mode 100644 index 9ce7c0d36..000000000 --- a/src/Text/Pandoc/Compat/Except.hs +++ /dev/null @@ -1,37 +0,0 @@ -{-# LANGUAGE CPP #-} -module Text.Pandoc.Compat.Except ( ExceptT - , Except - , Error(..) - , runExceptT - , runExcept - , MonadError - , throwError - , catchError ) - where - -#if MIN_VERSION_mtl(2,2,1) -import Control.Monad.Except - -class Error a where - noMsg :: a - strMsg :: String -> a - - noMsg = strMsg "" - strMsg _ = noMsg - -#else -import Control.Monad.Error -import Control.Monad.Identity (Identity, runIdentity) - -type ExceptT = ErrorT - -type Except s a = ErrorT s Identity a - -runExceptT :: ExceptT e m a -> m (Either e a) -runExceptT = runErrorT - -runExcept :: ExceptT e Identity a -> Either e a -runExcept = runIdentity . runExceptT -#endif - - -- cgit v1.2.3