@@ -10,7 +10,6 @@ module JRec
1010 append,
1111 union,
1212 insert,
13− -- insertOrSet
1413 )
1514where
1615
@@ -44,7 +43,9 @@ unField _ (_ R.:= value) = value
4443
4544-- Appends records, without removing duplicates.
4645--
47−-- FIXME: see spec
46+-- O(n + m) type check complexity.
47+--
48+-- FIXME: overwrites all indices (see spec)
4849append ::
4950 forall lhs rhs res.
5051 ( KnownNat (R.RecSize lhs),
@@ -61,7 +62,9 @@ append = R.combine
6162
6263-- Merges records, removing duplicates
6364--
64−-- Left-biased. Does not sort.
65+-- Left-biased. Does not sort.
66+--
67+-- O(n * m) type check complexity.
6568union ::
6669 forall lhs rhs res.
6770 ( KnownNat (R.RecSize lhs),
@@ -77,6 +80,8 @@ union ::
7780union = R.union
7881
7982-- | Insert a field into a record that does not already contain it
83+--
84+-- O(n) type check complexity.
8085insert ::
8186 forall label value lts res.
8287 ( KnownNat (1 + R.RecSize lts),