From 279ff9a6d28c87e1a6c105d9d33df2511fb8f132 Mon Sep 17 00:00:00 2001 From: krasimir Date: Sun, 5 Jul 2009 15:44:52 +0000 Subject: PGF.Type.Hypo now can represent explicit and implicit arguments and argument without bound variable --- src/GF/Compile/GeneratePMCFG.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/GF/Compile/GeneratePMCFG.hs') diff --git a/src/GF/Compile/GeneratePMCFG.hs b/src/GF/Compile/GeneratePMCFG.hs index bb61a0461..8081495f7 100644 --- a/src/GF/Compile/GeneratePMCFG.hs +++ b/src/GF/Compile/GeneratePMCFG.hs @@ -371,8 +371,9 @@ expandHOAS abs_defs cnc_defs lincats env = hoCats :: [CId] hoCats = sortNub [c | (_,(ty,_,_)) <- abs_defs - , Hyp _ ty <- case ty of {DTyp hyps val _ -> hyps} - , c <- fst (catSkeleton ty)] + , h <- case ty of {DTyp hyps val _ -> hyps} + , let ty = typeOfHypo h + , c <- fst (catSkeleton ty)] -- add a range of PMCFG categories for each GF high-order category add_hoCat env@(GrammarEnv last_id catSet seqSet funSet crcSet prodSet) (n,cat) = -- cgit v1.2.3