mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 18:26:36 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user