make-pandoc-man-pages: CPP macros to import right time module.

This commit is contained in:
John MacFarlane 2013-01-25 12:17:55 -08:00
parent bd645d9ae5
commit f135ac2389

View file

@ -7,11 +7,14 @@ import System.FilePath
import System.Environment (getArgs)
import Text.Pandoc.Shared (normalize)
import Data.Maybe ( catMaybes )
import Data.Time.Clock (UTCTime(..))
import Prelude hiding (catch)
import Control.Exception ( catch )
import System.IO.Error ( isDoesNotExistError )
#if MIN_VERSION_directory(1,2,0)
import Data.Time.Clock (UTCTime(..))
#else
import System.Time (ClockTime(..))
#endif
import System.Directory
main :: IO ()