Hoogle Search
Within LTS Haskell 24.20 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
whenJustM :: Monad m => m (Maybe a) -> (a -> m ()) -> m ()relude Relude.Monad.Maybe Monadic version of whenJust.
>>> whenJustM (pure Nothing) $ \b -> print (not b) >>> whenJustM (pure $ Just True) $ \b -> print (not b) False
-
relude Relude.Monad.Reexport The isJust function returns True iff its argument is of the form Just _.
Examples
Basic usage:>>> isJust (Just 3) True
>>> isJust (Just ()) True
>>> isJust Nothing False
Only the outer constructor is taken into consideration:>>> isJust (Just Nothing) True
fromJust :: HasCallStack => Maybe a -> arelude Relude.Unsafe The fromJust function extracts the element out of a Just and throws an error if its argument is Nothing.
Examples
Basic usage:>>> fromJust (Just 1) 1
>>> 2 * (fromJust (Just 10)) 20
>>> 2 * (fromJust Nothing) *** Exception: Maybe.fromJust: Nothing ...
WARNING: This function is partial. You can use case-matching instead.-
diagrams-core Diagrams.Core adjustDia allows the backend to make adjustments to the final diagram (e.g. to adjust the size based on the options) before rendering it. It returns a modified options record, the transformation applied to the diagram (which can be used to convert attributes whose value is Measure, or transform e.g. screen coordinates back into local diagram coordinates), and the adjusted diagram itself. See the diagrams-lib package (particularly the Diagrams.TwoD.Adjust module) for some useful implementations.
-
diagrams-core Diagrams.Core.Types adjustDia allows the backend to make adjustments to the final diagram (e.g. to adjust the size based on the options) before rendering it. It returns a modified options record, the transformation applied to the diagram (which can be used to convert attributes whose value is Measure, or transform e.g. screen coordinates back into local diagram coordinates), and the adjusted diagram itself. See the diagrams-lib package (particularly the Diagrams.TwoD.Adjust module) for some useful implementations.
data
IsJust (b :: Maybe a) (c :: Bool)first-class-families Fcf No documentation available.
data
IsJust (b :: Maybe a) (c :: Bool)first-class-families Fcf.Data.Common No documentation available.
adjust :: (Eq k, Hashable k) => (v -> v) -> k -> InsOrdHashMap k v -> InsOrdHashMap k vinsert-ordered-containers Data.HashMap.Strict.InsOrd No documentation available.
-
streaming Streaming Repeat a
-
streaming Streaming.Internal Repeat a