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.
readMaybe :: Read a => String -> Maybe acabal-install Distribution.Client.Utils Parse a string using the Read instance. Succeeds if there is exactly one valid result.
>>> readMaybe "123" :: Maybe Int Just 123
>>> readMaybe "hello" :: Maybe Int Nothing
liftMaybe :: (MonadError error m, CoHas option error) => option -> Maybe a -> m acan-i-haz Control.Monad.Except.CoHas Lifts a Maybe into any MonadError error. This function injects the passed option if the Maybe is Nothing.
mapMaybeVarEnv :: (a -> Maybe b) -> VarEnv a -> VarEnv bclash-lib Clash.Core.VarEnv Apply a function to every element in the environment; values for which the function returns Nothing are removed from the environment
mapMaybe :: (a -> Maybe b) -> UniqMap a -> UniqMap bclash-lib Clash.Data.UniqMap Apply a function to all elements in the map, keeping those where the result is not Nothing.
parseMaybeSingle :: (Char -> Bool) -> Text -> Maybe Textclash-lib Clash.Netlist.Id.Common No documentation available.
isVoidMaybe :: Bool -> Maybe HWType -> Boolclash-lib Clash.Netlist.Util No documentation available.
-
clash-lib Clash.Primitives.DSL Deconstruct a Maybe into its constructor Bit and contents of its Just field. Note that the contents might be undefined, if the constructor bit is set to Nothing.
hoistMaybe :: forall (m :: Type -> Type) b . Applicative m => Maybe b -> MaybeT m bclash-lib Clash.Util -
comfort-graph Data.Graph.Comfort You may only use this for filtering edges and use more specialised types as a result. You must not alter source and target nodes of edges.
-
conduino Data.Conduino Like fuseBoth and &|, except does not wait for the upstream pipe to terminate. Return Nothing in the first field if the upstream pipe hasn't terminated, and Just if it has, with the terminating value.