summaryrefslogtreecommitdiff
path: root/src-3.0/GF/Compile.hs
diff options
context:
space:
mode:
authorbjorn <bjorn@bringert.net>2008-05-30 13:56:50 +0000
committerbjorn <bjorn@bringert.net>2008-05-30 13:56:50 +0000
commit7f90087ab9c77ac2e2a57d53b8a985feb45d43f2 (patch)
tree03a2f357ee50e01b0582e69cc920814ad8660f80 /src-3.0/GF/Compile.hs
parent150940b8704a6a61ed08c6bbd99ba4b05a42c59c (diff)
Added setOptimization function to GF.Infra.Options. I will need to do similar things for other options.
Diffstat (limited to 'src-3.0/GF/Compile.hs')
-rw-r--r--src-3.0/GF/Compile.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src-3.0/GF/Compile.hs b/src-3.0/GF/Compile.hs
index 677aa4104..0119b2107 100644
--- a/src-3.0/GF/Compile.hs
+++ b/src-3.0/GF/Compile.hs
@@ -34,6 +34,7 @@ import System.Directory
import System.FilePath
import System.Time
import qualified Data.Map as Map
+import qualified Data.Set as Set
import PGF.Check
import PGF.Data
@@ -60,8 +61,8 @@ link opts cnc gr =
optimize :: Options -> PGF -> PGF
optimize opts = cse . suf
where os = moduleFlag optOptimizations opts
- cse = if OptCSE `elem` os then cseOptimize else id
- suf = if OptStem `elem` os then suffixOptimize else id
+ cse = if OptCSE `Set.member` os then cseOptimize else id
+ suf = if OptStem `Set.member` os then suffixOptimize else id
buildParser :: Options -> PGF -> PGF
buildParser opts =