Skip to content

Commit

Permalink
add missing changes and update changes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Jun 6, 2024
1 parent 421c4a3 commit 190ea14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

* Add Documentation.SBV.Examples.Puzzles.Tower module, solving the visible towers puzzle.

* Fix several representation bugs related to arbitrary-precision floats. Thanks to Sirui
Lu for the reports and patches.

### Version 10.10, 2024-05-11

* Add EqSymbolic, OrdSymbolic and Mergeable instances for NonEmpty type
Expand Down
3 changes: 2 additions & 1 deletion Data/SBV/Core/Concrete.hs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ instance Eq CVal where
CFloat a == CFloat b = a `fpIsEqualObjectH` b -- We don't want +0/-0 to be confused; and also we want NaN = NaN here!
CDouble a == CDouble b = a `fpIsEqualObjectH` b -- ditto
CRational a == CRational b = a == b
CFP a == CFP b = a `arbFPIsEqualObjectH` b
CChar a == CChar b = a == b
CString a == CString b = a == b
CList a == CList b = a == b
Expand All @@ -142,7 +143,7 @@ instance Ord CVal where
CFloat a `compare` CFloat b = a `fpCompareObjectH` b
CDouble a `compare` CDouble b = a `fpCompareObjectH` b
CRational a `compare` CRational b = a `compare` b
CFP a `compare` CFP b = a `fprCompareObject` b
CFP a `compare` CFP b = a `arbFPCompareObjectH` b
CChar a `compare` CChar b = a `compare` b
CString a `compare` CString b = a `compare` b
CList a `compare` CList b = a `compare` b
Expand Down

0 comments on commit 190ea14

Please sign in to comment.