Hoogle Search
Within LTS Haskell 24.38 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
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.
-
rhine FRP.Rhine.Clock.Realtime.Event Emit an event whenever the input value is Just event.
-
rhine FRP.Rhine.Clock.Realtime.Event Like emitSMaybe, but completely evaluates the event before emitting it.
satisfyMaybe :: (Word8 -> Bool) -> Scanner (Maybe Word8)scanner Scanner Consume a single octet in case it satisfies the predicate