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.
fromJustDef :: a -> Maybe a -> aerrors Control.Error An alternative name for fromMaybe, to fit the naming scheme of this package. Generally using fromMaybe directly would be considered better style.
-
errors Control.Error 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
lookupJustDef :: Eq a => b -> a -> [(a, b)] -> berrors Control.Error No documentation available.
tryJust :: forall (m :: Type -> Type) e a . Monad m => e -> Maybe a -> ExceptT e m aerrors Control.Error.Safe A fromJust that fails in the ExceptT monad
isJustT :: Monad m => MaybeT m a -> m Boolerrors Control.Error.Util module Diagrams.Parametric.
Adjust Tools for adjusting the length of parametric objects such as segments and trails.
-
diagrams-lib Diagrams.Parametric.Adjust What method should be used for adjusting a segment, trail, or path?
-
diagrams-lib Diagrams.Parametric.Adjust How should a segment, trail, or path be adjusted?
-
diagrams-lib Diagrams.Parametric.Adjust Which side of a segment, trail, or path should be adjusted?
adjust :: (N t ~ n, Sectionable t, HasArcLength t, Fractional n) => t -> AdjustOpts n -> tdiagrams-lib Diagrams.Parametric.Adjust Adjust the length of a parametric object such as a segment or trail. The second parameter is an option record which controls how the adjustment should be performed; see AdjustOpts.