File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,9 @@ exports.unsafeCompareImpl = function (lt) {
174
174
175
175
//- Bounded --------------------------------------------------------------------
176
176
177
+ exports . topInt = 2147483647 ;
178
+ exports . bottomInt = - 2147483648 ;
179
+
177
180
exports . topChar = String . fromCharCode ( 65535 ) ;
178
181
exports . bottomChar = String . fromCharCode ( 0 ) ;
179
182
Original file line number Diff line number Diff line change @@ -734,8 +734,8 @@ instance boundedOrdering :: Bounded Ordering where
734
734
bottom = LT
735
735
736
736
instance boundedInt :: Bounded Int where
737
- top = 2147483647
738
- bottom = - 2147483648
737
+ top = topInt
738
+ bottom = bottomInt
739
739
740
740
-- | Characters fall within the Unicode range.
741
741
instance boundedChar :: Bounded Char where
@@ -746,6 +746,9 @@ instance boundedFn :: (Bounded b) => Bounded (a -> b) where
746
746
top _ = top
747
747
bottom _ = bottom
748
748
749
+ foreign import topInt :: Int
750
+ foreign import bottomInt :: Int
751
+
749
752
foreign import topChar :: Char
750
753
foreign import bottomChar :: Char
751
754
You can’t perform that action at this time.
0 commit comments