Update reference semantics with the new compare* primitives.

This commit is contained in:
Rob Dockins 2021-08-20 13:29:31 -07:00
parent 716c338090
commit cfaafdce89
2 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@ -895,6 +895,18 @@ by corresponding type classes:
> do _ <- evalString s -- evaluate and ignore s
> _ <- x -- evaluate and ignore x
> y
>
> , "compareEq" ~> VNumPoly $ \m -> pure $
> VNumPoly $ \n -> pure $
> VBit (m == n)
>
> , "compareLt" ~> VNumPoly $ \m -> pure $
> VNumPoly $ \n -> pure $
> VBit (m < n)
>
> , "compareLeq" ~> VNumPoly $ \m -> pure $
> VNumPoly $ \n -> pure $
> VBit (m <= n)
> ]
>
>