summaryrefslogtreecommitdiff
path: root/src/GF/Devel/Compile/Compile.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2008-04-22 12:12:29 +0000
committerkrasimir <krasimir@chalmers.se>2008-04-22 12:12:29 +0000
commit375754e1064f7c64e3806fb802675c80aff1023a (patch)
tree0ee93c7385326f97282f94f77440dc3eb0ab0511 /src/GF/Devel/Compile/Compile.hs
parentfc111c1a7910ab4a2a1bf40c0473bbaacadedd61 (diff)
move gfLibraryPath and gfGrammarPath to UseIO. Now they are accessible and there is only one place to change if you want to use different envVar
Diffstat (limited to 'src/GF/Devel/Compile/Compile.hs')
-rw-r--r--src/GF/Devel/Compile/Compile.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/GF/Devel/Compile/Compile.hs b/src/GF/Devel/Compile/Compile.hs
index 65c0530f1..07e059ed4 100644
--- a/src/GF/Devel/Compile/Compile.hs
+++ b/src/GF/Devel/Compile/Compile.hs
@@ -44,9 +44,6 @@ intermOut opts opt s =
prMod :: SourceModule -> String
prMod = prModule
--- | environment variable for grammar search path
-gfGrammarPathVar = "GF_GRAMMAR_PATH"
-
-- | the environment
type CompileEnv = (Int,GF)
@@ -67,7 +64,7 @@ compileModule opts1 env file = do
let ps1 = if (useFileOpt && not useLineOpt)
then (ps0 ++ map (combine fpath) ps0)
else ps0
- ps <- ioeIO $ extendPathEnv gfLibraryPath gfGrammarPathVar ps1
+ ps <- ioeIO $ extendPathEnv ps1
let ioeIOIf = if oElem beVerbose opts then ioeIO else (const (return ()))
ioeIOIf $ putStrLn $ "module search path:" +++ show ps ----
let sgr = snd env