1
0
forked from GitHub/gf-core

Make -new-comp the default and bump the version number to 3.3.11-darcs

* -new-comp (the new partial evaluator) is now chosen by default when you run
  cabal install (or cabal configure). To revert to using the old partial
  evaluator by default, use "cabal install -f-new-comp" (or
  "cabal configure -f-new-comp").

* Regardless of the configured default, you can choose which partial evaluator
  to use when you invoke gf by using the -new-comp or -old-comp command line
  option.

* The cc command in the GF shell uses the chosen partial evaluator by default,
  but you can override this by using "cc -new" or "cc -old".

The plan is that these flags will be romeved in a future version.
This commit is contained in:
hallgren
2012-12-07 14:01:42 +00:00
parent 904e8029fe
commit db7063ebcc
2 changed files with 4 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
name: gf
version: 3.3.10-darcs
version: 3.3.11-darcs
cabal-version: >= 1.8
build-type: Custom
@@ -51,7 +51,7 @@ flag server
flag new-comp
Description: Make -new-comp the default
Default: False
Default: True
library
build-depends: base >= 4.2 && <5,

View File

@@ -184,7 +184,8 @@ execute1 opts gfenv0 s0 =
(style,q,s) = pOpts TermPrintDefault Qualified ws'
(new,ws') = case ws of
"-new":ws' -> (True,ws')
_ -> (False,ws)
"-old":ws' -> (False,ws')
_ -> (flag optNewComp opts,ws)
case runP pExp (encodeUnicode utf8 s) of
Left (_,msg) -> putStrLn msg