mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-15 12:03:47 -07:00
Correctly identify source files in ~/.lib (David McLean)
This commit is contained in:
@@ -477,7 +477,7 @@ recompile force = io $ do
|
|||||||
return (status == ExitSuccess)
|
return (status == ExitSuccess)
|
||||||
else return True
|
else return True
|
||||||
where getModTime f = catch (Just <$> getModificationTime f) (\(SomeException _) -> return Nothing)
|
where getModTime f = catch (Just <$> getModificationTime f) (\(SomeException _) -> return Nothing)
|
||||||
isSource = flip elem [".hs",".lhs",".hsc"]
|
isSource = flip elem [".hs",".lhs",".hsc"] . takeExtension
|
||||||
allFiles t = do
|
allFiles t = do
|
||||||
let prep = map (t</>) . Prelude.filter (`notElem` [".",".."])
|
let prep = map (t</>) . Prelude.filter (`notElem` [".",".."])
|
||||||
cs <- prep <$> catch (getDirectoryContents t) (\(SomeException _) -> return [])
|
cs <- prep <$> catch (getDirectoryContents t) (\(SomeException _) -> return [])
|
||||||
|
Reference in New Issue
Block a user