summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/GF/Compile.hs')
-rw-r--r--src/compiler/GF/Compile.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/compiler/GF/Compile.hs b/src/compiler/GF/Compile.hs
index 7c1290d7e..23c33cb90 100644
--- a/src/compiler/GF/Compile.hs
+++ b/src/compiler/GF/Compile.hs
@@ -59,10 +59,8 @@ link opts cnc gr = do
pgf <- ioeIO (mkCanon2pgf opts cnc gr)
probs <- ioeIO (maybe (return . defaultProbabilities) readProbabilitiesFromFile (flag optProbsFile opts) pgf)
ioeIO $ putStrLn "OK"
- pgf <- return $ setProbabilities probs
- $ if flag optOptimizePGF opts then optimizePGF pgf else pgf
- ioeIO $ putStrLn (showProbabilities (getProbabilities pgf))
- return pgf
+ return $ setProbabilities probs
+ $ if flag optOptimizePGF opts then optimizePGF pgf else pgf
batchCompile :: Options -> [FilePath] -> IOE SourceGrammar
batchCompile opts files = do