From 75f27111484d7dee17cda006d9f0cd27c1757dd4 Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Tue, 14 Jun 2022 19:04:20 +0400 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 218866c..f0bdfef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 function sum(l : list(int)) : int = foldl((+), 0, l) function logical_and(x, y) = (&&)(x, y) ``` +- Add comparable typevar constraints (`ord` and `eq`) + ``` + lt : 'a is ord ; ('a, 'a) => bool + lt(x, y) = x < y + + is_eq : 'a is eq ; ('a, 'a) => bool + is_eq(x, y) = x == y + ``` ### Changed - Error messages have been restructured (less newlines) to provide more unified errors. Also `pp_oneline/1` has been added. - Ban empty record definitions (e.g. `record r = {}` would give an error).