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. maybeToExceptT :: forall (m :: Type -> Type) e a . Functor m => e -> MaybeT m a -> ExceptT e m a

    dunai Control.Monad.Trans.MSF.Maybe

    Convert a MaybeT computation to ExceptT, with a default exception value.

  2. maybeModTime :: FilePath -> IO (Maybe UTCTime)

    dyre Config.Dyre.Paths

    Check if a file exists. If it exists, return Just the modification time. If it doesn't exist, return Nothing.

  3. maybeEither :: Maybe a -> Either () a

    errors-ext Control.Error.Extensions

    Converts Maybe to Either. Specialization of maybe.

    maybeEither . eitherMaybe = id
    

  4. maybeInjectExecutableHash :: FilePath -> IO ()

    executable-hash System.Executable.Hash.Internal

    Injects an executable hash into the specified binary. If it doesn't exist, then this prints a message to stdout indicating that it failed to inject the hash.

  5. maybeEq :: (a -> a -> Bool) -> Maybe a -> Maybe a -> Bool

    extrapolate Test.Extrapolate.Utils

    No documentation available.

  6. maybeOrd :: (a -> a -> Bool) -> Maybe a -> Maybe a -> Bool

    extrapolate Test.Extrapolate.Utils

    No documentation available.

  7. maybeError :: FitsError -> Maybe a -> Either String a

    fits-parse Data.Fits.Read

    No documentation available.

  8. maybeToFocus :: Maybe Int -> Focus

    focuslist Data.FocusList

    Convert a Maybe Int to a Focus.

    >>> maybeToFocus (Just 100)
    Focus 100
    
    >>> maybeToFocus Nothing
    NoFocus
    
    maybeToFocus and getFocus witness an isomorphism.
    focus == maybeToFocus (getFocus focus)
    
    maybeInt == getFocus (maybeToFocus maybeInt)
    
    complexity: O(1)

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

    from-sum Control.FromSum

    Convert a Maybe to an Either. If the Maybe is Just, then return the value in Right.

    >>> maybeToEither 3 $ Just "hello"
    Right "hello"
    
    If the Maybe is Nothing, then use the given e as Left.
    >>> maybeToEither 3 Nothing
    Left 3
    

  10. maybeToEitherOr :: Maybe a -> e -> Either e a

    from-sum Control.FromSum

    A fliped version of maybeToEither.

    >>> maybeToEitherOr (Just "hello") 3
    Right "hello"
    
    >>> maybeToEitherOr Nothing 3
    Left 3
    

Page 66 of many | Previous | Next