Skip to content

Commit 036bbec

Browse files
committed
Add Bounded Int instance
1 parent 8b77727 commit 036bbec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Prelude.purs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,10 @@ instance boundedOrdering :: Bounded Ordering where
898898
top = GT
899899
bottom = LT
900900

901+
instance boundedInt :: Bounded Int where
902+
top = 2147483647
903+
bottom = -2147483648
904+
901905
-- | The `Lattice` type class represents types that are partially ordered
902906
-- | sets with a supremum (`sup` or `||`) and infimum (`inf` or `&&`).
903907
-- |

0 commit comments

Comments
 (0)