summaryrefslogtreecommitdiff
path: root/src/GF/Compile/GeneratePMCFG.hs
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2009-07-05 15:44:52 +0000
committerkrasimir <krasimir@chalmers.se>2009-07-05 15:44:52 +0000
commit279ff9a6d28c87e1a6c105d9d33df2511fb8f132 (patch)
treea31ecbb34830c6566eb556e6aefaccb1551eabf7 /src/GF/Compile/GeneratePMCFG.hs
parent3394c171edf60bf21d46e628032c3369a4ee10b3 (diff)
PGF.Type.Hypo now can represent explicit and implicit arguments and argument without bound variable
Diffstat (limited to 'src/GF/Compile/GeneratePMCFG.hs')
-rw-r--r--src/GF/Compile/GeneratePMCFG.hs5
1 files changed, 3 insertions, 2 deletions
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) =