lhs = basename ++ ".lhs"
case lookupFM home_map hs of {
+ -- special case to avoid getting "./foo.hs" all the time
+ Just "." -> mkHomeModuleLocn mod_name basename hs;
Just path -> mkHomeModuleLocn mod_name
(path ++ '/':basename) (path ++ '/':hs);
Nothing ->
case lookupFM home_map lhs of {
+ -- special case to avoid getting "./foo.hs" all the time
+ Just "." -> mkHomeModuleLocn mod_name basename lhs;
Just path -> mkHomeModuleLocn mod_name
(path ++ '/':basename) (path ++ '/':lhs);
Nothing -> do
pkg_name = _PK_ (name pkg)
let addDir fm dir = do
contents <- getDirectoryContents' dir
- let clean_contents = filter isUsefulFile contents
- return (addListToFM fm (zip clean_contents
+ return (addListToFM fm (zip contents
(repeat (pkg_name,dir))))
foldM addDir fm dirs