Hoogle Search
Within LTS Haskell 24.39 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readMaybe :: (PrimMonad m, Unbox a) => MVector (PrimState m) a -> Int -> m (Maybe a)rebase Rebase.Data.Vector.Unboxed.Mutable No documentation available.
exceptToMaybeT :: forall (m :: Type -> Type) e a . Functor m => ExceptT e m a -> MaybeT m arebase Rebase.Prelude Convert a ExceptT computation to MaybeT, discarding the value of any exception.
fromMaybeS :: Selective f => f a -> f (Maybe a) -> f arebase Rebase.Prelude A lifted version of fromMaybe.
leftToMaybe :: Either a b -> Maybe arebase Rebase.Prelude Maybe get the Left side of an Either.
leftToMaybe ≡ either Just (const Nothing)
Using Control.Lens:leftToMaybe ≡ preview _Left leftToMaybe x ≡ x^?_Left
>>> leftToMaybe (Left 12) Just 12
>>> leftToMaybe (Right 12) Nothing
mapMaybeT :: (m (Maybe a) -> n (Maybe b)) -> MaybeT m a -> MaybeT n brebase Rebase.Prelude Transform the computation inside a MaybeT.
readMaybe :: Read a => String -> Maybe arebase Rebase.Prelude Parse a string using the Read instance. Succeeds if there is exactly one valid result.
>>> readMaybe "123" :: Maybe Int Just 123
>>> readMaybe "hello" :: Maybe Int Nothing
rightToMaybe :: Either a b -> Maybe brebase Rebase.Prelude Maybe get the Right side of an Either.
rightToMaybe ≡ either (const Nothing) Just
Using Control.Lens:rightToMaybe ≡ preview _Right rightToMaybe x ≡ x^?_Right
>>> rightToMaybe (Left 12) Nothing
>>> rightToMaybe (Right 12) Just 12
runMaybeApply :: MaybeApply (f :: Type -> Type) a -> Either (f a) arebase Rebase.Prelude No documentation available.
-
rhine FRP.Rhine.ClSF.Core Call a ClSF every time the input is 'Just a'. Caution: This will not change the time differences since the last tick. For example, while integrate 1 is approximately the same as timeInfoOf sinceInit, mapMaybe $ integrate 1 is very different from mapMaybe $ timeInfoOf sinceInit. The former only integrates when the input is Just 1, whereas the latter always returns the correct time since initialisation.
-
rhine FRP.Rhine.ClSF.Except When the input is Just e, throw the exception e.