Hoogle Search
Within LTS Haskell 24.51 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
onJust :: b -> Maybe a -> (a -> b) -> bghc-lib-parser GHC.Utils.Misc onJust x m f applies f to the value inside the Just or returns the default.
pattern
KEY_BrightnessAdjust :: Word32gi-gdk4 GI.Gdk.Constants No description available in the introspection data.
pattern
KEY_ContrastAdjust :: Word32gi-gdk4 GI.Gdk.Constants No description available in the introspection data.
catchGErrorJust :: GErrorClass err => err -> IO a -> (GErrorMessage -> IO a) -> IO aglib System.Glib.GError This will catch just a specific GError exception. If you need to catch a range of related errors, catchGErrorJustDomain is probably more appropriate. Example:
do image <- catchGErrorJust PixbufErrorCorruptImage loadImage (\errorMessage -> do log errorMessage return missingImagePlaceholder)
catchGErrorJustDomain :: GErrorClass err => IO a -> (err -> GErrorMessage -> IO a) -> IO aglib System.Glib.GError Catch all GErrors from a particular error domain. The handler function should just deal with one error enumeration type. If you need to catch errors from more than one error domain, use this function twice with an appropriate handler functions for each.
catchGErrorJustDomain loadImage (\err message -> case err of PixbufErrorCorruptImage -> ... PixbufErrorInsufficientMemory -> ... PixbufErrorUnknownType -> ... _ -> ...)
handleGErrorJust :: GErrorClass err => err -> (GErrorMessage -> IO a) -> IO a -> IO aglib System.Glib.GError A version of handleGErrorJust with the arguments swapped around.
handleGErrorJustDomain :: GErrorClass err => (err -> GErrorMessage -> IO a) -> IO a -> IO aglib System.Glib.GError A version of catchGErrorJustDomain with the arguments swapped around.
pattern
MaybeFin32Just# :: Fin32# n -> MaybeFin32# nnatural-arithmetic Arithmetic.Types No documentation available.
pattern
MaybeFinJust# :: Fin# n -> MaybeFin# nnatural-arithmetic Arithmetic.Types No documentation available.
layoutGetJustify :: PangoLayout -> IO Boolpango Graphics.Rendering.Pango Retrieve the justification flag.
- See layoutSetJustify.