File tree 1 file changed +0
-19
lines changed
1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -213,25 +213,6 @@ expandDirs = fmap concat . mapM each
213
213
then listFortranFiles path
214
214
else pure [path]
215
215
216
- data TimestampStatus = NoSuchFile | CompileFile | ModFileExists FilePath
217
-
218
- -- | Compare the source file timestamp to the fsmod file timestamp, if
219
- -- it exists.
220
- checkTimestamps :: FilePath -> IO TimestampStatus
221
- checkTimestamps path = do
222
- pathExists <- doesFileExist path
223
- modExists <- doesFileExist $ path -<.> modFileSuffix
224
- case (pathExists, modExists) of
225
- (False , _) -> pure NoSuchFile
226
- (True , False ) -> pure CompileFile
227
- (True , True ) -> do
228
- let modPath = path -<.> modFileSuffix
229
- pathModTime <- getModificationTime path
230
- modModTime <- getModificationTime modPath
231
- if pathModTime < modModTime
232
- then pure $ ModFileExists modPath
233
- else pure CompileFile
234
-
235
216
-- | Get a list of Fortran files under the given directory.
236
217
listFortranFiles :: FilePath -> IO [FilePath ]
237
218
listFortranFiles dir = filter isFortran <$> listDirectoryRecursively dir
You can’t perform that action at this time.
0 commit comments