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.
bitSizeMaybe :: Bits a => a -> Maybe Intfoundation Foundation.Bits Return the number of bits in the type of the argument. The actual value of the argument is ignored. Returns Nothing for types that do not have a fixed bitsize, like Integer.
lowerMaybe :: Monoid m => Maybe' m -> mgeneric-data Generic.Data.Internal.Traversable No documentation available.
splitTyConApp_maybe :: HasDebugCallStack => Type -> Maybe (TyCon, [Type])ghc-typelits-presburger GHC.TypeLits.Presburger.Compat Attempts to tease a type apart into a type constructor and the application of a number of arguments to that constructor
tyConAppTyCon_maybe :: Type -> Maybe TyConghc-typelits-presburger GHC.TypeLits.Presburger.Compat The same as fst . splitTyConApp We can short-cut the FunTy case
-
gi-gdk3 GI.Gdk.Objects.Window Adds region to the update area for window. The update area is the region that needs to be redrawn, or “dirty region.” The call windowProcessUpdates sends one or more expose events to the window, which together cover the entire update area. An application would normally redraw the contents of window in response to those expose events. GDK will call windowProcessAllUpdates on your behalf whenever your program returns to the main loop and becomes idle, so normally there’s no need to do that manually, you just need to invalidate regions that you know should be redrawn. The childFunc parameter controls whether the region of each child window that intersects region will also be invalidated. Only children for which childFunc returns TRUE will have the area invalidated.
warnMaybe :: Warn a -> Maybe amarkup-parse MarkupParse Returns results, if any, ignoring warnings.
>>> warnMaybe $ (tokenize Html) "<foo><baz" Just [OpenTag StartTag "foo" []]
-
massiv-test Test.Massiv.Array.Delayed No documentation available.
epsilonMaybeEq :: (Show a, RealFloat a) => a -> a -> a -> Maybe Stringmassiv-test Test.Massiv.Utils No documentation available.
fromMaybe :: a -> Maybe a -> amassiv-test Test.Massiv.Utils The fromMaybe function takes a default value and a Maybe value. If the Maybe is Nothing, it returns the default value; otherwise, it returns the value contained in the Maybe.
Examples
Basic usage:>>> fromMaybe "" (Just "Hello, World!") "Hello, World!"
>>> fromMaybe "" Nothing ""
Read an integer from a string using readMaybe. If we fail to parse an integer, we want to return 0 by default:>>> import GHC.Internal.Text.Read ( readMaybe ) >>> fromMaybe 0 (readMaybe "5") 5 >>> fromMaybe 0 (readMaybe "") 0
suchThatMaybe :: Gen a -> (a -> Bool) -> Gen (Maybe a)massiv-test Test.Massiv.Utils Tries to generate a value that satisfies a predicate. If it fails to do so after enough attempts, returns Nothing.