Prelude.CAPIT is now a built-in primitive. It still generates &| in the Haskell runtime but will be intepreted in the C runtime

This commit is contained in:
kr.angelov
2014-10-09 19:34:12 +00:00
parent 86e9acc7a7
commit f8b73d593c
19 changed files with 48 additions and 4 deletions

View File

@@ -443,6 +443,8 @@ convertTerm opts sel ctype (Q (m,f))
f == cBIND = return (CStr [SymBIND])
| m == cPredef &&
f == cSOFT_BIND = return (CStr [SymSOFT_BIND])
| m == cPredef &&
f == cCAPIT = return (CStr [SymCAPIT])
convertTerm opts sel@(CProj l _) ctype (ExtR t1 t2@(R rs2))
| l `elem` map fst rs2 = convertTerm opts sel ctype t2