Hoogle Search

Within LTS Haskell 24.31 (ghc-9.10.3)

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

  1. maybeToEither :: b -> Maybe a -> Either b a

    haskoin-core Haskoin.Util.Helpers

    Transform a Maybe value into an Either value. Just is mapped to Right and Nothing is mapped to Left. Default Left required.

  2. maybeFilePath :: Event -> Maybe RawFilePath

    hinotify System.INotify

    No documentation available.

  3. maybeFilePath :: Event -> Maybe RawFilePath

    hinotify System.INotify

    No documentation available.

  4. maybeFilePath :: Event -> Maybe RawFilePath

    hinotify System.INotify

    No documentation available.

  5. maybeFilePath :: Event -> Maybe RawFilePath

    hinotify System.INotify

    No documentation available.

  6. maybeFilePath :: Event -> Maybe RawFilePath

    hinotify System.INotify

    No documentation available.

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

    incipit-base Incipit.Base

    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
    

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

    incipit-base Incipit.Either

    Turn Just into Left and Nothing into Right with the supplied value.

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

    incipit-base Incipit.Either

    Turn Just into Right and Nothing into Left with the supplied value.

  10. maybeBraces :: Bool -> Doc -> Doc

    liquid-fixpoint Text.PrettyPrint.HughesPJ.Compat

    Apply braces to Doc if boolean is true.

Page 57 of many | Previous | Next