diff options
Diffstat (limited to 'src-3.0/GF/GFCC/Generate.hs')
| -rw-r--r-- | src-3.0/GF/GFCC/Generate.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-3.0/GF/GFCC/Generate.hs b/src-3.0/GF/GFCC/Generate.hs index 63bdb3b9a..0c02f2034 100644 --- a/src-3.0/GF/GFCC/Generate.hs +++ b/src-3.0/GF/GFCC/Generate.hs @@ -36,8 +36,8 @@ genRandom gen gfcc cat = genTrees (randomRs (0.0, 1.0 :: Double) gen) cat where (genTrees ds2 cat) -- else (drop k ds) genTree rs = gett rs where - gett ds (CId "String") = (tree (AS "foo") [], 1) - gett ds (CId "Int") = (tree (AI 12345) [], 1) + gett ds cid | cid == mkCId "String" = (tree (AS "foo") [], 1) + gett ds cid | cid == mkCId "Int" = (tree (AI 12345) [], 1) gett [] _ = (tree (AS "TIMEOUT") [], 1) ---- gett ds cat = case fns cat of [] -> (tree (AM 0) [],1) |
