Hoogle Search
Within LTS Haskell 24.36 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
encodeEnum16 :: Enum a => a -> ByteStringnetwork-transport Network.Transport.Internal Encode an Enum in 16 bits by encoding its signed Int equivalent (beware of truncation, an Enum may contain more than 2^16 points).
encodeEnum32 :: Enum a => a -> ByteStringnetwork-transport Network.Transport.Internal Encode an Enum in 32 bits by encoding its signed Int equivalent (beware of truncation, an Enum may contain more than 2^32 points).
tryToEnum :: (Enum a, Bounded a) => Int -> Maybe anetwork-transport Network.Transport.Internal Safe version of toEnum
boundedEnumFrom :: (Enum a, Bounded a) => a -> [a]relude Relude.Enum No documentation available.
boundedEnumFromThen :: (Enum a, Bounded a) => a -> a -> [a]relude Relude.Enum No documentation available.
fromEnum :: Enum a => a -> Intrelude Relude.Enum 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.
-
relude Relude.Enum Convert from an Int.
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
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")