mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
Added setOptimization function to GF.Infra.Options. I will need to do similar things for other options.
This commit is contained in:
@@ -34,6 +34,7 @@ import GF.Infra.Option
|
||||
|
||||
import Control.Monad
|
||||
import Data.List
|
||||
import qualified Data.Set as Set
|
||||
|
||||
import Debug.Trace
|
||||
|
||||
@@ -103,7 +104,7 @@ evalResInfo oopts gr (c,info) = case info of
|
||||
comp = if optres then computeConcrete gr else computeConcreteRec gr
|
||||
eIn cat = errIn ("Error optimizing" +++ cat +++ prt c +++ ":")
|
||||
optim = moduleFlag optOptimizations oopts
|
||||
optres = OptExpand `elem` optim
|
||||
optres = OptExpand `Set.member` optim
|
||||
|
||||
|
||||
evalCncInfo ::
|
||||
|
||||
Reference in New Issue
Block a user