diff --git a/src/compiler/api/GF/Grammar/Lookup.hs b/src/compiler/api/GF/Grammar/Lookup.hs index b86596be7..968127fe5 100644 --- a/src/compiler/api/GF/Grammar/Lookup.hs +++ b/src/compiler/api/GF/Grammar/Lookup.hs @@ -73,7 +73,8 @@ lookupIdentInfo (m,ModPGF{mpgf=pgf}) i = appHypos [] xs t es = foldl (appExpr xs) t es appHypos ((bt, v, ty):hypos) xs t es = - let x = identS v in Prod bt x (cnvType xs ty) (appHypos hypos (x:xs) t es) + let x = if v == "_" then identW else identS v + in Prod bt x (cnvType xs ty) (appHypos hypos (x:xs) t es) appExpr xs t e = App t (cnvExpr xs e)