Hoogle Search

Within LTS Haskell 24.51 (ghc-9.10.3)

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

  1. readMaybe :: (PrimMonad m, Storable a) => MVector (PrimState m) a -> Int -> m (Maybe a)

    rebase Rebase.Data.Vector.Storable.Mutable

    No documentation available.

  2. imapMaybe :: (Unbox a, Unbox b) => (Int -> a -> Maybe b) -> Vector a -> Vector b

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  3. imapMaybeM :: (Monad m, Unbox a, Unbox b) => (Int -> a -> m (Maybe b)) -> Vector a -> m (Vector b)

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  4. mapMaybe :: (Unbox a, Unbox b) => (a -> Maybe b) -> Vector a -> Vector b

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  5. mapMaybeM :: (Monad m, Unbox a, Unbox b) => (a -> m (Maybe b)) -> Vector a -> m (Vector b)

    rebase Rebase.Data.Vector.Unboxed

    No documentation available.

  6. readMaybe :: (PrimMonad m, Unbox a) => MVector (PrimState m) a -> Int -> m (Maybe a)

    rebase Rebase.Data.Vector.Unboxed.Mutable

    No documentation available.

  7. exceptToMaybeT :: forall (m :: Type -> Type) e a . Functor m => ExceptT e m a -> MaybeT m a

    rebase Rebase.Prelude

    Convert a ExceptT computation to MaybeT, discarding the value of any exception.

  8. fromMaybeS :: Selective f => f a -> f (Maybe a) -> f a

    rebase Rebase.Prelude

    A lifted version of fromMaybe.

  9. leftToMaybe :: Either a b -> Maybe a

    rebase Rebase.Prelude

    Maybe get the Left side of an Either.

    leftToMaybeeither Just (const Nothing)
    
    Using Control.Lens:
    leftToMaybe ≡ preview _Left
    leftToMaybe x ≡ x^?_Left
    
    >>> leftToMaybe (Left 12)
    Just 12
    
    >>> leftToMaybe (Right 12)
    Nothing
    

  10. mapMaybeT :: (m (Maybe a) -> n (Maybe b)) -> MaybeT m a -> MaybeT n b

    rebase Rebase.Prelude

    Transform the computation inside a MaybeT.

Page 229 of many | Previous | Next