diff options
author | Will Thompson <will@willthompson.co.uk> | 2013-04-07 19:39:53 +0100 |
---|---|---|
committer | Will Thompson <will@willthompson.co.uk> | 2013-04-07 19:39:53 +0100 |
commit | f21853cdea26200d4596c5306e2c5dbec3f31952 (patch) | |
tree | 2e5dad3eea5bedc6e5140641de8eed2097286a06 | |
parent | 4187c6c41fc153b0dd2bbe881017bc946d01d013 (diff) |
-rwxr-xr-x | tt.hs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -6,7 +6,7 @@ import System.Directory ( doesFileExist , doesDirectoryExist , getDirectoryContents ) -import Data.List (intercalate, stripPrefix, isSuffixOf) +import Data.List (intercalate, stripPrefix, isSuffixOf, sort) import Data.Maybe (fromMaybe, listToMaybe, isNothing, fromJust) import Control.Applicative ((<$>), (<*>)) import Control.Monad (when, filterM, forever, replicateM_) @@ -139,7 +139,7 @@ expand testDir inTree s isDirectory <- doesDirectoryExist dir if isDirectory - then (map (s </>) . filter isPython) <$> getDirectoryContents dir + then (map (s </>) . sort . filter isPython) <$> getDirectoryContents dir else return [s ++ ".py"] {- Stupid project-specific crap detection -} |