Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
maybeParens :: Bool -> Doc -> Docghc GHC.Utils.Ppr -
pipes Pipes.Lift Wrap the base monad in MaybeT
maybePokeGError :: Ptr (Ptr GError) -> Maybe GError -> IO ()haskell-gi-base Data.GI.Base.GError If the passed in Maybe GError is not Nothing, store a copy in the passed in pointer, unless the pointer is nullPtr.
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.