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.
commitb808655b2b48cdcbb7591695dd64db455252970e
authorJohn MacFarlane <fiddlosopher@gmail.com>
dateMon 15 Oct 2012, 21:31 (14 years ago)
parentb3ad94b
man/make-pandoc-man-pages.hs+1−1
@@ -86,7 +86,7 @@ modifiedDependencies :: FilePath -> [FilePath] -> IO [FilePath]
8686modifiedDependencies file dependencies = do
8787 fileModTime <- catch (getModificationTime file) $
8888 \e -> if isDoesNotExistError e
89−#if __GLASGOW_HASKELL__ >= 706
89+#if MIN_VERSION_directory(1,2,0)
9090 then return (UTCTime (toEnum 0) 0) -- the minimum ClockTime
9191#else
9292 then return (TOD 0 0) -- the minimum ClockTime