Hoogle Search
Within LTS Haskell 24.21 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
ceiling :: (C a, C b) => a -> bnumeric-prelude NumericPrelude.Numeric \x -> ceiling (-x) == negate (floor (x::Double) :: Integer)
\x -> ceiling (-x) == negate (floor (x::Rational) :: Integer)
-
numeric-prelude NumericPrelude.Numeric \x -> ceiling (-x) == negate (floor (x::Double) :: Integer)
\x -> ceiling (-x) == negate (floor (x::Rational) :: Integer)
fromIntegral :: (C a, C b) => a -> bnumeric-prelude NumericPrelude.Numeric No documentation available.
intCast :: (Integral a, Integral b, IsIntSubType a b ~ 'True) => a -> bint-cast Data.IntCast Statically checked integer conversion which satisfies the property
Note: This is just a type-restricted alias of fromIntegral and should therefore lead to the same compiled code as if fromIntegral had been used instead of intCast.intCastIso :: (Integral a, Integral b, IsIntTypeIso a b ~ 'True) => a -> bint-cast Data.IntCast Statically checked integer conversion which satisfies the properties
∀β . intCastIso (intCastIso a ∷ β) == a
toInteger (intCastIso a) == toInteger b (if toInteger a == toInteger b)
intCastEq :: (Integral a, Integral b, IsIntTypeEq a b ~ 'True) => a -> bint-cast Data.IntCast Version of intCast restricted to casts between types with same value domain. intCastEq is the most constrained of the three conversions: The existence of a intCastEq conversion implies the existence of the other two, i.e. intCastIso and intCast. Note: This is just a type-restricted alias of fromIntegral and should therefore lead to the same compiled code as if fromIntegral had been used instead of intCastIso.
fromIntegral :: (Integral a, Num b) => a -> bbase Prelude General coercion from Integral types. WARNING: This function performs silent truncation if the result type is not at least as big as the argument's type.
fromIntegral :: (Integral a, Num b) => a -> bbase GHC.Real General coercion from Integral types. WARNING: This function performs silent truncation if the result type is not at least as big as the argument's type.
fromIntegral :: (Integral a, Num b) => a -> bhedgehog Hedgehog.Internal.Prelude General coercion from Integral types. WARNING: This function performs silent truncation if the result type is not at least as big as the argument's type.
fromIntegral :: (Integral a, Num b) => a -> bghc GHC.Prelude.Basic No documentation available.