Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
safeToEnum :: (Bounded a, Enum a) => Int -> Maybe arelude Relude.Extra.Enum Returns Nothing if given Int outside range.
>>> safeToEnum @Bool 0 Just False >>> safeToEnum @Bool 1 Just True >>> safeToEnum @Bool 2 Nothing >>> safeToEnum @Bool (-1) Nothing
casesEnum :: (Bounded a, Enum a) => Cases aselective Control.Selective The list of all possible values of an enumerable data type.
citationNoteNum :: Citation -> Intpandoc-types Text.Pandoc.Definition No documentation available.
parseNumberLit :: Char -> String -> (String, String)pretty-simple Text.Pretty.Simple.Internal.ExprParser Parses integers and reals, like 123 and 45.67. To be more precise, any numbers matching the regex \d+(\.\d+)? should get parsed by this function.
>>> parseNumberLit '3' "456hello world []" ("3456","hello world []") >>> parseNumberLit '0' ".12399880 foobar" ("0.12399880"," foobar")fromEnum :: Enum a => a -> Intbasement Basement.Compat.Base 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.
-
basement Basement.Compat.Base Convert from an Int.
fromEnum :: Enum a => a -> Intbasement Basement.Imports 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.
-
basement Basement.Imports Convert from an Int.
data
FromEnumSym0 (a1 :: TyFun a Natural)singletons-base Data.Singletons.Base.Enum No documentation available.
type family
FromEnumSym1 (a6989586621679621653 :: a) :: Naturalsingletons-base Data.Singletons.Base.Enum No documentation available.