File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 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) {
174174
175175//- Bounded --------------------------------------------------------------------
176176
177+ exports . topInt = 2147483647 ;
178+ exports . bottomInt = - 2147483648 ;
179+
177180exports . topChar = String . fromCharCode ( 65535 ) ;
178181exports . bottomChar = String . fromCharCode ( 0 ) ;
179182
Original file line number Diff line number Diff line change @@ -734,8 +734,8 @@ instance boundedOrdering :: Bounded Ordering where
734734 bottom = LT
735735
736736instance boundedInt :: Bounded Int where
737- top = 2147483647
738- bottom = - 2147483648
737+ top = topInt
738+ bottom = bottomInt
739739
740740-- | Characters fall within the Unicode range.
741741instance boundedChar :: Bounded Char where
@@ -746,6 +746,9 @@ instance boundedFn :: (Bounded b) => Bounded (a -> b) where
746746 top _ = top
747747 bottom _ = bottom
748748
749+ foreign import topInt :: Int
750+ foreign import bottomInt :: Int
751+
749752foreign import topChar :: Char
750753foreign import bottomChar :: Char
751754
You can’t perform that action at this time.
0 commit comments