another attempt to get the paths handling right

This commit is contained in:
krasimir committed 2009-10-05 14:58:13 +00:00
1 parent be966cdda2
commit 332dbf7b9b
7 files changed
+38 -24

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 fs
ioeErr $ parseModuleOptions (dropFileName file) fs
getFilePath :: [FilePath] -> String -> IO (Maybe FilePath)
getFilePath paths file = get paths