From ad2e19a41f3452b1e41fded535a9a79ee74eb664 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 23 Feb 2017 21:00:35 +0100 Subject: Fix compiler warning for older GHC versions. --- src/Text/Pandoc/Error.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Error.hs b/src/Text/Pandoc/Error.hs index 552fc9c4b..5866c2127 100644 --- a/src/Text/Pandoc/Error.hs +++ b/src/Text/Pandoc/Error.hs @@ -1,4 +1,4 @@ -{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-} +{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, CPP #-} {- Copyright (C) 2006-2016 John MacFarlane @@ -39,7 +39,10 @@ import Data.Generics (Typeable) import GHC.Generics (Generic) import Control.Exception (Exception) import Text.Pandoc.Shared (err) -import System.IO.Error (IOError) +#if MIN_VERSION_base(4,9,0) +import qualified System.IO.Error (IOError, ioError) +#else +#endif type Input = String -- cgit v1.2.3