diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-25 12:17:55 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-25 12:17:55 -0800 |
commit | f135ac2389240c42d7c27ab9f9b48b58a3db10c5 (patch) | |
tree | 6b6736c079111bf1552cd397fbb07fc8e43f051b | |
parent | bd645d9ae5def0ee5bf2c31785b536022ada2357 (diff) | |
download | pandoc-f135ac2389240c42d7c27ab9f9b48b58a3db10c5.tar.gz |
make-pandoc-man-pages: CPP macros to import right time module.
-rw-r--r-- | man/make-pandoc-man-pages.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/man/make-pandoc-man-pages.hs b/man/make-pandoc-man-pages.hs index 52e2741f1..eca1276eb 100644 --- a/man/make-pandoc-man-pages.hs +++ b/man/make-pandoc-man-pages.hs @@ -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 () |