Hoogle Search

Within LTS Haskell 24.39 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. toMaybe :: Optional a -> Maybe a

    cabal-gild CabalGild.Unstable.Type.Optional

    Converts an Optional value into a Maybe one.

  2. type SourceRepoMaybe = SourceRepositoryPackage Maybe

    cabal-install Distribution.Client.Types.SourceRepo

    Distilled from SourceRepo

  3. readMaybe :: Read a => String -> Maybe a

    cabal-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
    

  4. liftMaybe :: (MonadError error m, CoHas option error) => option -> Maybe a -> m a

    can-i-haz Control.Monad.Except.CoHas

    Lifts a Maybe into any MonadError error. This function injects the passed option if the Maybe is Nothing.

  5. mapMaybeVarEnv :: (a -> Maybe b) -> VarEnv a -> VarEnv b

    clash-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

  6. mapMaybe :: (a -> Maybe b) -> UniqMap a -> UniqMap b

    clash-lib Clash.Data.UniqMap

    Apply a function to all elements in the map, keeping those where the result is not Nothing.

  7. parseMaybeSingle :: (Char -> Bool) -> Text -> Maybe Text

    clash-lib Clash.Netlist.Id.Common

    No documentation available.

  8. isVoidMaybe :: Bool -> Maybe HWType -> Bool

    clash-lib Clash.Netlist.Util

    No documentation available.

  9. deconstructMaybe :: (HasCallStack, Backend backend) => TExpr -> (Text, Text) -> State (BlockState backend) (TExpr, TExpr)

    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.

  10. hoistMaybe :: forall (m :: Type -> Type) b . Applicative m => Maybe b -> MaybeT m b

    clash-lib Clash.Util

    Convert a Maybe computation to MaybeT.

Page 265 of many | Previous | Next