hopefully the last revision of the relative paths handling algorithm

This commit is contained in:
krasimir committed 2009-10-06 10:27:34 +00:00
1 parent 332dbf7b9b
commit cbcdae9148
8 files changed
+43 -41

No files matched your search

+1 -1
View File
@@ -205,7 +205,7 @@ getOptionsFromFile file = do
(\_ -> return (Bad $ "File " ++ file ++ " does not exist"))
let ls = filter (BS.isPrefixOf (BS.pack "--#")) $ BS.lines s
fs = map (BS.unpack . BS.unwords . BS.words . BS.drop 3) ls
ioeErr $ parseModuleOptions (dropFileName file) fs
ioeErr $ parseModuleOptions fs
getFilePath :: [FilePath] -> String -> IO (Maybe FilePath)
getFilePath paths file = get paths