Permalink
Browse files

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.
  • Loading branch information...
1 parent b3ad94b commit b808655b2b48cdcbb7591695dd64db455252970e John MacFarlane committed Oct 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit b808655

Please sign in to comment.