@@ -1070,13 +1070,11 @@ eqDoc = parseDocstring . T.pack $
1070 "To use such a proof, pattern-match on it, and the two equal things will " ++
1070 "To use such a proof, pattern-match on it, and the two equal things will " ++
1071 "then need to be the _same_ pattern." ++
1071 "then need to be the _same_ pattern." ++
1072 "\n\n" ++
1072 "\n\n" ++
1073− "**Note**: Idris's equality type is _heterogeneous_, which means that it " ++
1073+ "**Note**: Idris's equality type is potentially _heterogeneous_, which means that it " ++
1074 "is possible to state equalities between values of potentially different " ++
1074 "is possible to state equalities between values of potentially different " ++
1075− "types. This is sometimes referred to in the literature as \"John Major\" " ++
1075+ "types. However, Idris will attempt the homogeneous case unless it fails to typecheck." ++
1077 "\n\n" ++
1076 "\n\n" ++
1078− "Thus, if Idris can't infer the type of one side of the equality, then " ++
1077+ "You may need to use `(~=~)` to explicitly request heterogeneous equality."
1079− "you may need to annotate it. See the function `the`."
1081eqDecl = PDatadecl eqTy (piBindp impl [(n "A", PType), (n "B", PType)]
1079eqDecl = PDatadecl eqTy (piBindp impl [(n "A", PType), (n "B", PType)]
1082 (piBind [(n "x", PRef bi (n "A")), (n "y", PRef bi (n "B"))]
1080 (piBind [(n "x", PRef bi (n "A")), (n "y", PRef bi (n "B"))]