Hoogle Search
Within LTS Haskell 24.4 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
maybeWithManagedPtr :: (HasCallStack, ManagedPtrNewtype a) => Maybe a -> (Ptr a -> IO c) -> IO chaskell-gi-base Data.GI.Base.ManagedPtr Like withManagedPtr, but accepts a Maybe type. If the passed value is Nothing the inner action will be executed with a nullPtr argument.
maybeFromPtr :: Ptr a -> Maybe (Ptr a)haskell-gi-base Data.GI.Base.Utils Check if the pointer is nullPtr, and wrap it on a Maybe accordingly.
maybeM :: Monad m => b -> Maybe a -> (a -> m b) -> m bhaskell-gi-base Data.GI.Base.Utils Like maybe, but for actions on a monad, and with slightly different argument order.
maybeReleaseFunPtr :: Maybe (Ptr (FunPtr a)) -> IO ()haskell-gi-base Data.GI.Base.Utils If given a pointer to the memory location, free the FunPtr at that location, and then the pointer itself. Useful for freeing the memory associated to callbacks which are called just once, with no destroy notification.
-
haskell-gi Data.GI.CodeGen.API No documentation available.
maybeNullConvert :: Type -> CodeGen e (Maybe Text)haskell-gi Data.GI.CodeGen.Conversions If the passed in type is nullable, return the conversion function between the FFI pointer type (may be a Ptr or a FunPtr) and the corresponding Maybe type.
-
haskell-gi Data.GI.CodeGen.Type Embed in the Maybe monad.
-
haskell-gi Data.GI.GIR.Arg No documentation available.
maybeAuthorized :: Yesod site => Route site -> Bool -> HandlerT site IO (Maybe (Route site))yesod-core Yesod.Core Return the same URL if the user is authorized to see it. Built on top of isAuthorized. This is useful for building page that only contain links to pages the user is allowed to see.
maybeCryptoError :: CryptoFailable a -> Maybe acryptonite Crypto.Error Transform a CryptoFailable to a Maybe