Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. maybeCharRef :: T -> Maybe Int

    xml-basic Text.XML.Basic.Character

    No documentation available.

  2. maybeEntityRef :: T -> Maybe String

    xml-basic Text.XML.Basic.Character

    No documentation available.

  3. maybeUnicode :: T -> Maybe Char

    xml-basic Text.XML.Basic.Character

    No documentation available.

  4. maybeXMLEncoding :: (Tag name, Attribute name) => Name name -> T name string -> Maybe string

    xml-basic Text.XML.Basic.Tag

    No documentation available.

  5. maybeFullIPv6Addr :: Text -> Maybe IPv6Addr

    IPv6Addr Text.IPv6Addr

    Returns Just a pure and fully expanded IPv6Addr, or Nothing.

    maybeFullIPv6Addr "::ffff:192.0.2.128" == Just (IPv6Addr "0000:0000:0000:0000:0000:ffff:c000:0280")
    

  6. maybeIPv6Addr :: Text -> Maybe IPv6Addr

    IPv6Addr Text.IPv6Addr

    Returns Just the text representation of a canonized IPv6Addr in conformation with RFC 5952, or Nothing.

    maybeIPv6Addr "0:0::FFFF:192.0.2.128" == Just (IPv6Addr "::ffff:192.0.2.128")
    

  7. maybePureIPv6Addr :: Text -> Maybe IPv6Addr

    IPv6Addr Text.IPv6Addr

    Returns Just a pure IPv6Addr, or Nothing.

    maybePureIPv6Addr "::ffff:192.0.2.128" == Just (IPv6Addr "::ffff:c000:280")
    

  8. maybeF :: (a -> b -> a) -> a -> Maybe b -> Maybe a

    algebraic-graphs Algebra.Graph.Internal

    An auxiliary function that tries to apply a function to a base case and a Maybe value and returns Just the result or Just the base case.

  9. maybeToList :: Maybe a -> [a]

    cabal-install-solver Distribution.Solver.Compat.Prelude

    The maybeToList function returns an empty list when given Nothing or a singleton list when given Just.

    Examples

    Basic usage:
    >>> maybeToList (Just 7)
    [7]
    
    >>> maybeToList Nothing
    []
    
    One can use maybeToList to avoid pattern matching when combined with a function that (safely) works on lists:
    >>> import GHC.Internal.Text.Read ( readMaybe )
    
    >>> sum $ maybeToList (readMaybe "3")
    3
    
    >>> sum $ maybeToList (readMaybe "")
    0
    

  10. maybeRead :: Read a => String -> Maybe a

    cgi Network.CGI.Protocol

    No documentation available.

Page 40 of many | Previous | Next