Skip to content

Commit d327720

Browse files
committed
Fix bug on real life
1 parent 606746f commit d327720

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Setup.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Distribution.Simple
22
import System.Directory
3-
import Data.List (intercalate, delete, isInfixOf)
3+
import Data.List (intercalate, delete, isInfixOf, sort)
44
import qualified Data.Text as T
55
import qualified Data.Text.IO as T
66

@@ -9,11 +9,10 @@ main = do
99
generateRealLifeGraphs
1010
defaultMain
1111

12-
1312
-- | generate real life graphs from a text file
1413
generateRealLifeGraphs :: IO ()
1514
generateRealLifeGraphs = do
16-
gr <- delete "README.md" <$> listDirectory prefixDir
15+
gr <- sort . delete "README.md" <$> listDirectory prefixDir
1716
str <- foldl accumF (return start) gr
1817
writeFile generatedFile $ init (init str) ++ "\n ]"
1918
where

0 commit comments

Comments
 (0)