summaryrefslogtreecommitdiff
path: root/src/GF/Infra
diff options
context:
space:
mode:
authoraarne <unknown>2005-05-27 10:37:57 +0000
committeraarne <unknown>2005-05-27 10:37:57 +0000
commitdc49b7a89190f58319e5986b822552486255b4e1 (patch)
treea3cab0ff62df7c3a1215990a2a48ff5b050028cc /src/GF/Infra
parent276a08a0d7b4b53a382c471a92a1084f1718c34a (diff)
lib path and *
Diffstat (limited to 'src/GF/Infra')
-rw-r--r--src/GF/Infra/UseIO.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GF/Infra/UseIO.hs b/src/GF/Infra/UseIO.hs
index 487ad1fba..67f0d6c1b 100644
--- a/src/GF/Infra/UseIO.hs
+++ b/src/GF/Infra/UseIO.hs
@@ -5,9 +5,9 @@
-- Stability : (stable)
-- Portability : (portable)
--
--- > CVS $Date: 2005/05/27 08:13:35 $
+-- > CVS $Date: 2005/05/27 11:37:57 $
-- > CVS $Author: aarne $
--- > CVS $Revision: 1.15 $
+-- > CVS $Revision: 1.16 $
--
-- (Description of the module)
-----------------------------------------------------------------------------
@@ -113,9 +113,9 @@ extendPathEnv :: String -> String -> [FilePath] -> IO [FilePath]
extendPathEnv lib var ps = do
b <- catch (getEnv lib) (const (return "")) -- e.g. GF_LIB_PATH
s <- catch (getEnv var) (const (return "")) -- e.g. GF_GRAMMAR_PATH
- fs <- getFilePaths s
+ let fs = pFilePaths s
let ss = ps ++ fs
- return $ ss ++ [b ++ "/" ++ s | s <- ss]
+ liftM concat $ mapM allSubdirs $ ss ++ [b ++ "/" ++ s | s <- ss]
pFilePaths :: String -> [FilePath]
pFilePaths s = case break isPathSep s of