diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-10-15 21:31:19 -0700 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-10-15 21:31:19 -0700 |
commit | b808655b2b48cdcbb7591695dd64db455252970e (patch) | |
tree | 9542fe5890a46a9995aa2de33da8b4d90ae7cd62 /man | |
parent | b3ad94bde9e2d21a7b3823412197976b5454fdbd (diff) |
make-pandoc-man-pages: Use MIN_VERSION macro rather than checking GHC version.
This is more reliable, since directory 1.2.0.1 can be used with
GHC < 1.7.6.
Diffstat (limited to 'man')
-rw-r--r-- | man/make-pandoc-man-pages.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man/make-pandoc-man-pages.hs b/man/make-pandoc-man-pages.hs index b94af744e..31a935a28 100644 --- a/man/make-pandoc-man-pages.hs +++ b/man/make-pandoc-man-pages.hs @@ -86,7 +86,7 @@ modifiedDependencies :: FilePath -> [FilePath] -> IO [FilePath] modifiedDependencies file dependencies = do fileModTime <- catch (getModificationTime file) $ \e -> if isDoesNotExistError e -#if __GLASGOW_HASKELL__ >= 706 +#if MIN_VERSION_directory(1,2,0) then return (UTCTime (toEnum 0) 0) -- the minimum ClockTime #else then return (TOD 0 0) -- the minimum ClockTime |