From 5ae0e0d442f643ddd5a5a5e378f994e868b6d92d Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Fri, 19 Mar 2010 02:33:15 +0000 Subject: Depend on extensible-exceptions, remove CPP in Templates module. It's safe to depend on extensible-exceptions, since this is shipped with GHC 6.10 and 6.12. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1911 788f1e2b-df1e-0410-8736-df70ead52e1b --- src/Text/Pandoc/Templates.hs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Templates.hs b/src/Text/Pandoc/Templates.hs index b8d186759..c30af0bfc 100644 --- a/src/Text/Pandoc/Templates.hs +++ b/src/Text/Pandoc/Templates.hs @@ -76,13 +76,7 @@ import Text.PrettyPrint (text, Doc) import Text.XHtml (primHtml, Html) import Data.ByteString.Lazy.UTF8 (ByteString, fromString) import Text.Pandoc.Shared (readDataFile) --- Note: it would be simpler just to use Control.Exception.Extensible --- for all versions of base, but extensible-exceptions is not in debian. -#if MIN_VERSION_base(4,0,0) -import qualified Control.Exception as E (try, IOException) -#else import qualified Control.Exception.Extensible as E (try, IOException) -#endif -- | Get default template for the specified writer. getDefaultTemplate :: (Maybe FilePath) -- ^ User data directory to search first -- cgit v1.2.3