Fix compiler warning for older GHC versions.

This commit is contained in:
John MacFarlane 2017-02-23 21:00:35 +01:00
parent 61d3376a45
commit ad2e19a41f

View file

@ -1,4 +1,4 @@
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric #-}
{-# LANGUAGE DeriveDataTypeable, DeriveGeneric, CPP #-}
{-
Copyright (C) 2006-2016 John MacFarlane <jgm@berkeley.edu>
@ -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