Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

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

  1. maybeEntityRef :: T -> Maybe String

    xml-basic Text.XML.Basic.Character

    No documentation available.

  2. maybeUnicode :: T -> Maybe Char

    xml-basic Text.XML.Basic.Character

    No documentation available.

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

    xml-basic Text.XML.Basic.Tag

    No documentation available.

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

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

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

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

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

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

    cgi Network.CGI.Protocol

    No documentation available.

  10. maybeC :: forall (m :: Type -> Type) i o a . Monad m => ConduitT i o m (Maybe a) -> ConduitT i o (MaybeT m) a

    classy-prelude-conduit ClassyPrelude.Conduit

    Wrap the base monad in MaybeT Since 1.0.11

Page 55 of many | Previous | Next