summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/GeneratePMCFG.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-08-23 13:17:45 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-08-23 13:17:45 +0000
commita20cd77d251192b8912587de17ebb87fa3cfb053 (patch)
tree24cba6146320eeff2e0eda2ee731546c247c577b /src/compiler/GF/Compile/GeneratePMCFG.hs
parent7c98267193726f4031c4551cf8a24c34c75fef94 (diff)
nonExist now does the expected thing
Diffstat (limited to 'src/compiler/GF/Compile/GeneratePMCFG.hs')
-rw-r--r--src/compiler/GF/Compile/GeneratePMCFG.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/GF/Compile/GeneratePMCFG.hs b/src/compiler/GF/Compile/GeneratePMCFG.hs
index 2db007635..d34518cf6 100644
--- a/src/compiler/GF/Compile/GeneratePMCFG.hs
+++ b/src/compiler/GF/Compile/GeneratePMCFG.hs
@@ -391,6 +391,10 @@ convertTerm opts sel ctype (Alts s alts)
4
(ppPatt Unqualified 0 p)
+convertTerm opts sel ctype (Q (m,f))
+ | m == cPredef &&
+ f == cNonExist = return (CStr [SymNE])
+
convertTerm opts sel@(CProj l _) ctype (ExtR t1 t2@(R rs2))
| l `elem` map fst rs2 = convertTerm opts sel ctype t2
| otherwise = convertTerm opts sel ctype t1