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.

  1. encodeEnum16 :: Enum a => a -> ByteString

    network-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).

  2. encodeEnum32 :: Enum a => a -> ByteString

    network-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).

  3. tryToEnum :: (Enum a, Bounded a) => Int -> Maybe a

    network-transport Network.Transport.Internal

    Safe version of toEnum

  4. boundedEnumFrom :: (Enum a, Bounded a) => a -> [a]

    relude Relude.Enum

    No documentation available.

  5. boundedEnumFromThen :: (Enum a, Bounded a) => a -> a -> [a]

    relude Relude.Enum

    No documentation available.

  6. fromEnum :: Enum a => a -> Int

    relude 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.

  7. toEnum :: Enum a => Int -> a

    relude Relude.Enum

    Convert from an Int.

  8. safeToEnum :: (Bounded a, Enum a) => Int -> Maybe a

    relude 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
    

  9. citationNoteNum :: Citation -> Int

    pandoc-types Text.Pandoc.Definition

    No documentation available.

  10. 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")
    

Page 123 of many | Previous | Next