| Copyright | (c) The University of Glasgow 1997-2002 |
|---|---|
| License | see libraries/base/LICENSE |
| Maintainer | ghc-devs@haskell.org |
| Stability | internal |
| Portability | non-portable (GHC Extensions) |
| Safe Haskell | Trustworthy |
| Language | Haskell2010 |
GHC.Internal.Int
Contents
Synopsis
- data Int = I# Int#
- data Int8 = I8# Int8#
- data Int16 = I16# Int16#
- data Int32 = I32# Int32#
- data Int64 = I64# Int64#
- uncheckedIShiftL64# :: Int64# -> Int# -> Int64#
- uncheckedIShiftRA64# :: Int64# -> Int# -> Int64#
- shiftRLInt8# :: Int8# -> Int# -> Int8#
- shiftRLInt16# :: Int16# -> Int# -> Int16#
- shiftRLInt32# :: Int32# -> Int# -> Int32#
- eqInt :: Int -> Int -> Bool
- neInt :: Int -> Int -> Bool
- gtInt :: Int -> Int -> Bool
- geInt :: Int -> Int -> Bool
- ltInt :: Int -> Int -> Bool
- leInt :: Int -> Int -> Bool
- eqInt8 :: Int8 -> Int8 -> Bool
- neInt8 :: Int8 -> Int8 -> Bool
- gtInt8 :: Int8 -> Int8 -> Bool
- geInt8 :: Int8 -> Int8 -> Bool
- ltInt8 :: Int8 -> Int8 -> Bool
- leInt8 :: Int8 -> Int8 -> Bool
- eqInt16 :: Int16 -> Int16 -> Bool
- neInt16 :: Int16 -> Int16 -> Bool
- gtInt16 :: Int16 -> Int16 -> Bool
- geInt16 :: Int16 -> Int16 -> Bool
- ltInt16 :: Int16 -> Int16 -> Bool
- leInt16 :: Int16 -> Int16 -> Bool
- eqInt32 :: Int32 -> Int32 -> Bool
- neInt32 :: Int32 -> Int32 -> Bool
- gtInt32 :: Int32 -> Int32 -> Bool
- geInt32 :: Int32 -> Int32 -> Bool
- ltInt32 :: Int32 -> Int32 -> Bool
- leInt32 :: Int32 -> Int32 -> Bool
- eqInt64 :: Int64 -> Int64 -> Bool
- neInt64 :: Int64 -> Int64 -> Bool
- gtInt64 :: Int64 -> Int64 -> Bool
- geInt64 :: Int64 -> Int64 -> Bool
- ltInt64 :: Int64 -> Int64 -> Bool
- leInt64 :: Int64 -> Int64 -> Bool
Documentation
A fixed-precision integer type with at least the range [-2^29 .. 2^29-1].
The exact range for a given implementation can be determined by using
minBound and maxBound from the Bounded class.
Instances
| Bits Int # | Since: base-2.1 | ||||
Defined in GHC.Internal.Bits | |||||
| FiniteBits Int # | Since: base-4.6.0.0 | ||||
Defined in GHC.Internal.Bits Methods finiteBitSize :: Int -> Int # countLeadingZeros :: Int -> Int # countTrailingZeros :: Int -> Int # | |||||
| Eq Int # | |||||
| Ord Int # | |||||
| Data Int # | Since: base-4.0.0.0 | ||||
Defined in GHC.Internal.Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int -> c Int # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int # dataTypeOf :: Int -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int) # gmapT :: (forall b. Data b => b -> b) -> Int -> Int # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int -> r # gmapQ :: (forall d. Data d => d -> u) -> Int -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Int -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int -> m Int # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int -> m Int # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int -> m Int # | |||||
| Bounded Int # | Since: base-2.1 | ||||
| Enum Int # | Since: base-2.1 | ||||
| Storable Int # | Since: base-2.1 | ||||
Defined in GHC.Internal.Foreign.Storable | |||||
| Ix Int # | Since: base-2.1 | ||||
| Num Int # | Since: base-2.1 | ||||
| Read Int # | Since: base-2.1 | ||||
| Integral Int # | Since: base-2.0.1 | ||||
| Real Int # | Since: base-2.0.1 | ||||
Defined in GHC.Internal.Real Methods toRational :: Int -> Rational # | |||||
| Show Int # | Since: base-2.1 | ||||
| Lift Int # | |||||
| Generic1 (URec Int :: k -> Type) # | |||||
Defined in GHC.Internal.Generics Associated Types
| |||||
| Foldable (UInt :: Type -> Type) # | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Data.Foldable Methods fold :: Monoid m => UInt m -> m # foldMap :: Monoid m => (a -> m) -> UInt a -> m # foldMap' :: Monoid m => (a -> m) -> UInt a -> m # foldr :: (a -> b -> b) -> b -> UInt a -> b # foldr' :: (a -> b -> b) -> b -> UInt a -> b # foldl :: (b -> a -> b) -> b -> UInt a -> b # foldl' :: (b -> a -> b) -> b -> UInt a -> b # foldr1 :: (a -> a -> a) -> UInt a -> a # foldl1 :: (a -> a -> a) -> UInt a -> a # elem :: Eq a => a -> UInt a -> Bool # maximum :: Ord a => UInt a -> a # | |||||
| Traversable (UInt :: Type -> Type) # | Since: base-4.9.0.0 | ||||
| Functor (URec Int :: Type -> Type) # | Since: base-4.9.0.0 | ||||
| Eq (URec Int p) # | Since: base-4.9.0.0 | ||||
| Ord (URec Int p) # | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Generics | |||||
| Generic (URec Int p) # | |||||
Defined in GHC.Internal.Generics Associated Types
| |||||
| Show (URec Int p) # | Since: base-4.9.0.0 | ||||
| data URec Int (p :: k) # | Used for marking occurrences of Since: base-4.9.0.0 | ||||
| type Rep1 (URec Int :: k -> Type) # | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Generics | |||||
| type Rep (URec Int p) # | Since: base-4.9.0.0 | ||||
Defined in GHC.Internal.Generics | |||||
8-bit signed integer type
Instances
| Bits Int8 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods (.&.) :: Int8 -> Int8 -> Int8 # (.|.) :: Int8 -> Int8 -> Int8 # complement :: Int8 -> Int8 # shift :: Int8 -> Int -> Int8 # rotate :: Int8 -> Int -> Int8 # setBit :: Int8 -> Int -> Int8 # clearBit :: Int8 -> Int -> Int8 # complementBit :: Int8 -> Int -> Int8 # testBit :: Int8 -> Int -> Bool # bitSizeMaybe :: Int8 -> Maybe Int # shiftL :: Int8 -> Int -> Int8 # unsafeShiftL :: Int8 -> Int -> Int8 # shiftR :: Int8 -> Int -> Int8 # unsafeShiftR :: Int8 -> Int -> Int8 # rotateL :: Int8 -> Int -> Int8 # | |
| FiniteBits Int8 # | Since: base-4.6.0.0 |
Defined in GHC.Internal.Int Methods finiteBitSize :: Int8 -> Int # countLeadingZeros :: Int8 -> Int # countTrailingZeros :: Int8 -> Int # | |
| Eq Int8 # | Since: base-2.1 |
| Ord Int8 # | Since: base-2.1 |
| Data Int8 # | Since: base-4.0.0.0 |
Defined in GHC.Internal.Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int8 -> c Int8 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int8 # dataTypeOf :: Int8 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int8) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int8) # gmapT :: (forall b. Data b => b -> b) -> Int8 -> Int8 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int8 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int8 -> r # gmapQ :: (forall d. Data d => d -> u) -> Int8 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Int8 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int8 -> m Int8 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int8 -> m Int8 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int8 -> m Int8 # | |
| Bounded Int8 # | Since: base-2.1 |
| Enum Int8 # | Since: base-2.1 |
| Storable Int8 # | Since: base-2.1 |
Defined in GHC.Internal.Foreign.Storable | |
| Ix Int8 # | Since: base-2.1 |
| Num Int8 # | Since: base-2.1 |
| Read Int8 # | Since: base-2.1 |
| Integral Int8 # | Since: base-2.1 |
| Real Int8 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods toRational :: Int8 -> Rational # | |
| Show Int8 # | Since: base-2.1 |
| Lift Int8 # | |
16-bit signed integer type
Instances
| Bits Int16 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods (.&.) :: Int16 -> Int16 -> Int16 # (.|.) :: Int16 -> Int16 -> Int16 # xor :: Int16 -> Int16 -> Int16 # complement :: Int16 -> Int16 # shift :: Int16 -> Int -> Int16 # rotate :: Int16 -> Int -> Int16 # setBit :: Int16 -> Int -> Int16 # clearBit :: Int16 -> Int -> Int16 # complementBit :: Int16 -> Int -> Int16 # testBit :: Int16 -> Int -> Bool # bitSizeMaybe :: Int16 -> Maybe Int # shiftL :: Int16 -> Int -> Int16 # unsafeShiftL :: Int16 -> Int -> Int16 # shiftR :: Int16 -> Int -> Int16 # unsafeShiftR :: Int16 -> Int -> Int16 # rotateL :: Int16 -> Int -> Int16 # | |
| FiniteBits Int16 # | Since: base-4.6.0.0 |
Defined in GHC.Internal.Int Methods finiteBitSize :: Int16 -> Int # countLeadingZeros :: Int16 -> Int # countTrailingZeros :: Int16 -> Int # | |
| Eq Int16 # | Since: base-2.1 |
| Ord Int16 # | Since: base-2.1 |
| Data Int16 # | Since: base-4.0.0.0 |
Defined in GHC.Internal.Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int16 -> c Int16 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int16 # dataTypeOf :: Int16 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int16) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int16) # gmapT :: (forall b. Data b => b -> b) -> Int16 -> Int16 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int16 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int16 -> r # gmapQ :: (forall d. Data d => d -> u) -> Int16 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Int16 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int16 -> m Int16 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int16 -> m Int16 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int16 -> m Int16 # | |
| Bounded Int16 # | Since: base-2.1 |
| Enum Int16 # | Since: base-2.1 |
Defined in GHC.Internal.Int | |
| Storable Int16 # | Since: base-2.1 |
| Ix Int16 # | Since: base-2.1 |
| Num Int16 # | Since: base-2.1 |
| Read Int16 # | Since: base-2.1 |
| Integral Int16 # | Since: base-2.1 |
| Real Int16 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods toRational :: Int16 -> Rational # | |
| Show Int16 # | Since: base-2.1 |
| Lift Int16 # | |
32-bit signed integer type
Instances
| Bits Int32 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods (.&.) :: Int32 -> Int32 -> Int32 # (.|.) :: Int32 -> Int32 -> Int32 # xor :: Int32 -> Int32 -> Int32 # complement :: Int32 -> Int32 # shift :: Int32 -> Int -> Int32 # rotate :: Int32 -> Int -> Int32 # setBit :: Int32 -> Int -> Int32 # clearBit :: Int32 -> Int -> Int32 # complementBit :: Int32 -> Int -> Int32 # testBit :: Int32 -> Int -> Bool # bitSizeMaybe :: Int32 -> Maybe Int # shiftL :: Int32 -> Int -> Int32 # unsafeShiftL :: Int32 -> Int -> Int32 # shiftR :: Int32 -> Int -> Int32 # unsafeShiftR :: Int32 -> Int -> Int32 # rotateL :: Int32 -> Int -> Int32 # | |
| FiniteBits Int32 # | Since: base-4.6.0.0 |
Defined in GHC.Internal.Int Methods finiteBitSize :: Int32 -> Int # countLeadingZeros :: Int32 -> Int # countTrailingZeros :: Int32 -> Int # | |
| Eq Int32 # | Since: base-2.1 |
| Ord Int32 # | Since: base-2.1 |
| Data Int32 # | Since: base-4.0.0.0 |
Defined in GHC.Internal.Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int32 -> c Int32 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int32 # dataTypeOf :: Int32 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int32) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int32) # gmapT :: (forall b. Data b => b -> b) -> Int32 -> Int32 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int32 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int32 -> r # gmapQ :: (forall d. Data d => d -> u) -> Int32 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Int32 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int32 -> m Int32 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int32 -> m Int32 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int32 -> m Int32 # | |
| Bounded Int32 # | Since: base-2.1 |
| Enum Int32 # | Since: base-2.1 |
Defined in GHC.Internal.Int | |
| Storable Int32 # | Since: base-2.1 |
| Ix Int32 # | Since: base-2.1 |
| Num Int32 # | Since: base-2.1 |
| Read Int32 # | Since: base-2.1 |
| Integral Int32 # | Since: base-2.1 |
| Real Int32 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods toRational :: Int32 -> Rational # | |
| Show Int32 # | Since: base-2.1 |
| Lift Int32 # | |
64-bit signed integer type
Instances
| Bits Int64 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods (.&.) :: Int64 -> Int64 -> Int64 # (.|.) :: Int64 -> Int64 -> Int64 # xor :: Int64 -> Int64 -> Int64 # complement :: Int64 -> Int64 # shift :: Int64 -> Int -> Int64 # rotate :: Int64 -> Int -> Int64 # setBit :: Int64 -> Int -> Int64 # clearBit :: Int64 -> Int -> Int64 # complementBit :: Int64 -> Int -> Int64 # testBit :: Int64 -> Int -> Bool # bitSizeMaybe :: Int64 -> Maybe Int # shiftL :: Int64 -> Int -> Int64 # unsafeShiftL :: Int64 -> Int -> Int64 # shiftR :: Int64 -> Int -> Int64 # unsafeShiftR :: Int64 -> Int -> Int64 # rotateL :: Int64 -> Int -> Int64 # | |
| FiniteBits Int64 # | Since: base-4.6.0.0 |
Defined in GHC.Internal.Int Methods finiteBitSize :: Int64 -> Int # countLeadingZeros :: Int64 -> Int # countTrailingZeros :: Int64 -> Int # | |
| Eq Int64 # | Since: base-2.1 |
| Ord Int64 # | Since: base-2.1 |
| Data Int64 # | Since: base-4.0.0.0 |
Defined in GHC.Internal.Data.Data Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Int64 -> c Int64 # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Int64 # dataTypeOf :: Int64 -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Int64) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Int64) # gmapT :: (forall b. Data b => b -> b) -> Int64 -> Int64 # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Int64 -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Int64 -> r # gmapQ :: (forall d. Data d => d -> u) -> Int64 -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Int64 -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Int64 -> m Int64 # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Int64 -> m Int64 # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Int64 -> m Int64 # | |
| Bounded Int64 # | Since: base-2.1 |
| Enum Int64 # | Since: base-2.1 |
Defined in GHC.Internal.Int | |
| Storable Int64 # | Since: base-2.1 |
| Ix Int64 # | Since: base-2.1 |
| Num Int64 # | Since: base-2.1 |
| Read Int64 # | Since: base-2.1 |
| Integral Int64 # | Since: base-2.1 |
| Real Int64 # | Since: base-2.1 |
Defined in GHC.Internal.Int Methods toRational :: Int64 -> Rational # | |
| Show Int64 # | Since: base-2.1 |
| Lift Int64 # | |
uncheckedIShiftL64# :: Int64# -> Int# -> Int64# #
uncheckedIShiftRA64# :: Int64# -> Int# -> Int64# #
shiftRLInt8# :: Int8# -> Int# -> Int8# #
shiftRLInt16# :: Int16# -> Int# -> Int16# #
shiftRLInt32# :: Int32# -> Int# -> Int32# #
Equality operators
See GHC.Internal.Classes#matching_overloaded_methods_in_rules