Hoogle Search

Within LTS Haskell 24.31 (ghc-9.10.3)

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

  1. maybeBuildTopEntity :: Maybe String -> Name -> Q (TExp (Maybe TopEntity))

    clash-prelude Clash.Annotations.TH

    Return a typed 'Maybe TopEntity' expression given a Name. This will return an TExp of Nothing if TopEntity generation failed.

  2. maybeHasX :: (NFData a, NFDataX a) => a -> Maybe a

    clash-prelude Clash.XException

    Fully evaluate a value, returning Nothing if it throws XException. Note that non-XException errors take precedence over XException ones.

    maybeHasX 42                    = Just 42
    maybeHasX (XException msg)      = Nothing
    maybeHasX (3, XException msg)   = Nothing
    maybeHasX (XException msg, _|_) = _|_
    maybeHasX (_|_, XException msg) = _|_
    maybeHasX (3, _|_)              = _|_
    maybeHasX _|_                   = _|_
    

  3. maybeIsX :: a -> Maybe a

    clash-prelude Clash.XException

    Evaluate a value to WHNF, returning Nothing if it throws XException.

    maybeIsX 42                  = Just 42
    maybeIsX (XException msg)    = Nothing
    maybeIsX (3, XException msg) = Just (3, XException msg)
    maybeIsX (3, _|_)            = Just (3, _|_)
    maybeIsX _|_                 = _|_
    

  4. maybeX :: (String -> b) -> (a -> b) -> MaybeX a -> b

    clash-prelude Clash.XException.MaybeX

    Map functions over both constructors.

  5. maybeC :: forall (m :: Type -> Type) i o a . Monad m => ConduitT i o m (Maybe a) -> ConduitT i o (MaybeT m) a

    classy-prelude-conduit ClassyPrelude.Conduit

    Wrap the base monad in MaybeT Since 1.0.11

  6. maybeRecount :: (Countable a, Countable b) => a -> Maybe b

    countable Data.Countable

    No documentation available.

  7. maybeDeserialized :: Deserialized α -> Maybe α

    data-serializer Data.Deserializer

    Map Deserialized values to Just and Malformed to Nothing.

  8. maybeParsed :: Parsed α -> Maybe α

    data-textual Data.Textual

    Map Parsed values to Just and Malformed to Nothing.

  9. maybePrint :: (Printer p, Printable α) => Maybe α -> p

    data-textual Data.Textual

    A shorthand for maybe mempty print.

  10. maybeToEither :: b -> Maybe a -> Either b a

    dbus-hslogger System.Log.DBus.Server

    No documentation available.

Page 56 of many | Previous | Next