summaryrefslogtreecommitdiff
path: root/src/GF/Canon/Share.hs
diff options
context:
space:
mode:
authorbringert <unknown>2005-06-17 13:15:16 +0000
committerbringert <unknown>2005-06-17 13:15:16 +0000
commit2c48a10236bb19d8b04382cb1e957ce18b9d29fd (patch)
tree1194fc1981b5cd2a144b72f4fff261edfeb1af2e /src/GF/Canon/Share.hs
parent05b5ffe5bf03a870f6fe0728ace6c0d8de69b89e (diff)
Changed name of Con constructor in GFC.cf to avoid errors on Windows when generating Java code with BNFC for the GFC grammar. CON is a reserved filename on Windows. Con was changed to Par, and all the code using was changed too.
Diffstat (limited to 'src/GF/Canon/Share.hs')
-rw-r--r--src/GF/Canon/Share.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GF/Canon/Share.hs b/src/GF/Canon/Share.hs
index 0cad8bdb1..69725001a 100644
--- a/src/GF/Canon/Share.hs
+++ b/src/GF/Canon/Share.hs
@@ -5,9 +5,9 @@
-- Stability : (stable)
-- Portability : (portable)
--
--- > CVS $Date: 2005/04/21 16:21:30 $
+-- > CVS $Date: 2005/06/17 14:15:18 $
-- > CVS $Author: bringert $
--- > CVS $Revision: 1.11 $
+-- > CVS $Revision: 1.12 $
--
-- Optimizations on GFC code: sharing, parametrization, value sets.
--
@@ -128,8 +128,8 @@ replace old new trm = case trm of
FV ts -> FV (map repl ts)
-- these are the important cases, since they can correspond to patterns
- Con c ts | trm == old -> new
- Con c ts -> Con c (map repl ts)
+ Par c ts | trm == old -> new
+ Par c ts -> Par c (map repl ts)
R _ | isRec && trm == old -> new
R lts -> R [Ass l (repl t) | Ass l t <- lts]