aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2012-04-30 17:42:22 +0200
committerAdam Vogt <vogt.adam@gmail.com>2012-04-30 17:42:22 +0200
commitbb6fc78eaafe0077d9d9d586ae0c9f3b1dbaffeb (patch)
treeb64637f6abecaeeb5ec8a8ecc829f3799cc392ee
parent5043ddf467f6ee4411c2f9c750e963667f586337 (diff)
downloadxmonad-bb6fc78eaafe0077d9d9d586ae0c9f3b1dbaffeb.tar.gz
xmonad-bb6fc78eaafe0077d9d9d586ae0c9f3b1dbaffeb.tar.xz
xmonad-bb6fc78eaafe0077d9d9d586ae0c9f3b1dbaffeb.zip
Correctly identify source files in ~/.lib (David McLean)
Ignore-this: efc21bae061768ad15a36a5f7b6aeb87 darcs-hash:20120430154222-1499c-c80ecae7b87b5115723362ad3c5698e875608a66.gz
-rw-r--r--XMonad/Core.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Core.hs b/XMonad/Core.hs
index b3593a0..cc3bf3e 100644
--- a/XMonad/Core.hs
+++ b/XMonad/Core.hs
@@ -477,7 +477,7 @@ recompile force = io $ do
return (status == ExitSuccess)
else return True
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
let prep = map (t</>) . Prelude.filter (`notElem` [".",".."])
cs <- prep <$> catch (getDirectoryContents t) (\(SomeException _) -> return [])