Skip to content

Commit e341c63

Browse files
committed
Merge pull request #15 from hdgarrood/master
Add Bounded Int instance
2 parents 8b77727 + 036bbec commit e341c63

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)