@@ -1065,16 +1065,10 @@ getInferType (App (App _ ty) _) = ty
1066-- Handy primitives: Unit, False, Pair, MkPair, =, mkForeign
1066-- Handy primitives: Unit, False, Pair, MkPair, =, mkForeign
1068−primNames = [unitTy, unitCon,
1069− falseTy, pairTy, pairCon,
1070− eqTy, eqCon, inferTy, inferCon]
1068+primNames = [falseTy, eqTy, eqCon, inferTy, inferCon]
1072−unitDoc = parseDocstring . T.pack $ "The canonical single-element type, also known as the trivially true proposition."
1073unitTy = sUN "Unit"
1070unitTy = sUN "Unit"
1074unitCon = sUN "MkUnit"
1071unitCon = sUN "MkUnit"
1075−unitDecl = PDatadecl unitTy PType
1076− [(parseDocstring . T.pack $ "The trivial constructor for `()`. ", [], unitCon, PRef bi unitTy, bi, [])]
1077−unitOpts = [DefaultEliminator]
1079falseDoc = parseDocstring . T.pack $
1073falseDoc = parseDocstring . T.pack $
1080 "The empty type, also known as the trivially false proposition." ++
1074 "The empty type, also known as the trivially false proposition." ++
@@ -1085,25 +1079,8 @@ falseTy = sMN 0 "__False"
1085falseDecl = PDatadecl falseTy PType []
1079falseDecl = PDatadecl falseTy PType []
1086falseOpts = []
1080falseOpts = []
1088−pairDoc = parseDocstring . T.pack $ "The non-dependent pair type, also known as conjunction."
1089pairTy = sUN "Pair"
1082pairTy = sUN "Pair"
1090pairCon = sUN "MkPair"
1083pairCon = sUN "MkPair"
1091−pairDecl = PDatadecl pairTy (piBind [(n "A", PType), (n "B", PType)] PType)
1092− [(pairConDoc, pairConParamDoc,
1093− pairCon, PPi impl (n "A") PType (
1094− PPi impl (n "B") PType (
1095− PPi expl (n "a") (PRef bi (n "A")) (
1096− PPi expl (n "b") (PRef bi (n "B"))
1097− (PApp bi (PRef bi pairTy) [pexp (PRef bi (n "A")),
1098− pexp (PRef bi (n "B"))])))), bi, [])]
1099− where n a = sMN 0 a
1100− pairConDoc = parseDocstring . T.pack $ "A pair of elements"
1101− pairConParamDoc = [(n "a", parseDocstring . T.pack $ "the left element of the pair"),
1102− (n "b", parseDocstring . T.pack $ "the right element of the pair")]
1104−pairParamDoc = [(n "A", parseDocstring . T.pack $ "the type of the left elements in the pair"),
1105− (n "B", parseDocstring . T.pack $ "the type of the left elements in the pair")]
1106− where n a = sMN 0 a
1108eqTy = sUN "="
1085eqTy = sUN "="
1109eqCon = sUN "Refl"
1086eqCon = sUN "Refl"