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. maybeFromByteList :: ByteList -> T T

    midi Sound.MIDI.File.Load

    No documentation available.

  2. maybeFromByteString :: ByteString -> T T

    midi Sound.MIDI.File.Load

    No documentation available.

  3. maybeFromByteString :: ByteString -> T T

    midi Sound.MIDI.Message

    No documentation available.

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

    protolude Protolude

    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
    

  5. maybeEmpty :: Monoid b => (a -> b) -> Maybe a -> b

    protolude Protolude.Either

    No documentation available.

  6. maybeToEither :: e -> Maybe a -> Either e a

    protolude Protolude.Either

    No documentation available.

  7. maybeToLeft :: r -> Maybe l -> Either l r

    protolude Protolude.Either

    No documentation available.

  8. maybeToRight :: l -> Maybe r -> Either l r

    protolude Protolude.Either

    No documentation available.

  9. maybeDCaseE :: MatchContext -> DExp -> [DMatch] -> DExp

    th-desugar Language.Haskell.TH.Desugar

    If matches is non-empty, make a case statement; otherwise make an error statement

  10. maybeDLetE :: [DLetDec] -> DExp -> DExp

    th-desugar Language.Haskell.TH.Desugar

    If decs is non-empty, delcare them in a let:

Page 27 of many | Previous | Next