Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
rio RIO.Partial Convert from an Int.
fromEnum :: Enum a => a -> Intrio RIO.Prelude Convert to an Int. It is implementation-dependent what fromEnum returns when applied to a value that is too large to fit in an Int.
-
rio RIO.Prelude Sign of a number. The functions abs and signum should satisfy the law:
abs x * signum x == x
For real numbers, the signum is either -1 (negative), 0 (zero) or 1 (positive). -
rio RIO.Prelude.Types Class Enum defines operations on sequentially ordered types. The enumFrom... methods are used in Haskell's translation of arithmetic sequences. Instances of Enum may be derived for any enumeration type (types whose constructors have no fields). The nullary constructors are assumed to be numbered left-to-right by fromEnum from 0 through n-1. See Chapter 10 of the Haskell Report for more details. For any type that is an instance of class Bounded as well as Enum, the following should hold:
- The calls succ maxBound and pred minBound should result in a runtime error.
- fromEnum and toEnum should give a runtime error if the result value is not representable in the result type. For example, toEnum 7 :: Bool is an error.
- enumFrom and enumFromThen should be defined with an implicit bound, thus:
enumFrom x = enumFromTo x maxBound enumFromThen x y = enumFromThenTo x y bound where bound | fromEnum y >= fromEnum x = maxBound | otherwise = minBound
enumFromN :: (Vector v a, Num a) => a -> Int -> v ario RIO.Vector No documentation available.
enumFromStepN :: (Vector v a, Num a) => a -> a -> Int -> v ario RIO.Vector No documentation available.
enumFromThenTo :: (Vector v a, Enum a) => a -> a -> a -> v ario RIO.Vector No documentation available.
enumFromTo :: (Vector v a, Enum a) => a -> a -> v ario RIO.Vector No documentation available.
enumFromN :: Num a => a -> Int -> Vector ario RIO.Vector.Boxed No documentation available.
enumFromStepN :: Num a => a -> a -> Int -> Vector ario RIO.Vector.Boxed No documentation available.