-getMustBeBuildables bootPackagesFile
- = do xs <- readFile bootPackagesFile
- return $ filter ("editline" /=) $ lines xs
+getMustBeBuildables packagesFile
+ = do xs <- readFile packagesFile
+ let nonCommentLines = filter (("#" /=) . take 1) $ lines xs
+ requiredLines = filter ((2 == ) . length) $ map words nonCommentLines
+ requiredLibraries = [ x | 'l':'i':'b':'r':'a':'r':'i':'e':'s':'/':x
+ <- map head requiredLines ]
+ return $ filter ("editline" /=) requiredLibraries