From 446d99c3709370ab40e408f9c6e8a55d0db3dcc5 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 5 Nov 2007 21:55:17 +0000 Subject: [PATCH] fixed variants bug in GFCC.Linearize: l. 64,46 'r' must be 'p' --- src/GF/GFCC/Linearize.hs | 2 +- src/GF/GFCC/doc/gfcc.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GF/GFCC/Linearize.hs b/src/GF/GFCC/Linearize.hs index b7b419f7d..7147afdcf 100644 --- a/src/GF/GFCC/Linearize.hs +++ b/src/GF/GFCC/Linearize.hs @@ -61,7 +61,7 @@ compute mcfg lang args = comp where proj r p = case (r,p) of (_, FV ts) -> FV $ lmap (proj r) ts - (FV ts, _ ) -> FV $ lmap (\t -> proj t r) ts + (FV ts, _ ) -> FV $ lmap (\t -> proj t p) ts (W s t, _) -> kks (s ++ getString (proj t p)) _ -> comp $ getField r (getIndex p) diff --git a/src/GF/GFCC/doc/gfcc.txt b/src/GF/GFCC/doc/gfcc.txt index 0eca6192c..6a78a62f6 100644 --- a/src/GF/GFCC/doc/gfcc.txt +++ b/src/GF/GFCC/doc/gfcc.txt @@ -363,6 +363,7 @@ compute gfcc lang args = comp where proj r p = case (r,p) of (_, FV ts) -> FV $ Prelude.map (proj r) ts + (FV ts, _ ) -> FV $ Prelude.map (\t -> proj t p) ts (W s t, _) -> kks (s ++ getString (proj t p)) _ -> comp $ getField r (getIndex p)