Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

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

  1. minusNaturalMaybe :: Natural -> Natural -> Maybe Natural

    ghc-internal GHC.Internal.Numeric.Natural

    Natural subtraction. Returns Nothings for non-positive results.

  2. statGetType_maybe :: Ptr CStat -> IO (Maybe IODeviceType)

    ghc-internal GHC.Internal.System.Posix.Internals

    Unlike statGetType, statGetType_maybe will not throw an exception if the CStat refers to a unknown device type.

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

    ghc-internal GHC.Internal.Text.Read

    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. nextMaybeF :: Int -> (Int -> Bool) -> (Int -> Int) -> (Maybe Int -> f a) -> f a

    massiv Data.Massiv.Core.Index

    No documentation available.

  5. scatMaybes :: Stream r ix (Maybe a) => Array r ix (Maybe a) -> Vector DS a

    massiv Data.Massiv.Vector

    Keep all Maybes and discard the Nothings.

    Examples

  6. simapMaybe :: Stream r ix a => (ix -> a -> Maybe b) -> Array r ix a -> Vector DS b

    massiv Data.Massiv.Vector

    Similar to smapMaybe, but map with an index aware function.

    Examples

  7. simapMaybeM :: forall r ix a b f . (Stream r ix a, Applicative f) => (ix -> a -> f (Maybe b)) -> Array r ix a -> f (Vector DS b)

    massiv Data.Massiv.Vector

    Similar to smapMaybeM, but map with an index aware function.

    Examples

  8. smapMaybe :: Stream r ix a => (a -> Maybe b) -> Array r ix a -> Vector DS b

    massiv Data.Massiv.Vector

    Apply a function to each element of the array, while discarding Nothing and keeping the Maybe result.

    Examples

  9. smapMaybeM :: forall r ix a b f . (Stream r ix a, Applicative f) => (a -> f (Maybe b)) -> Array r ix a -> f (Vector DS b)

    massiv Data.Massiv.Vector

    Similar to smapMaybe, but with the Applicative function. Similar to mapMaybe id $ mapM f arr

    Examples

  10. bitSizeMaybe :: Bits a => a -> Maybe Int

    protolude Protolude

    Return the number of bits in the type of the argument. The actual value of the argument is ignored. Returns Nothing for types that do not have a fixed bitsize, like Integer.

Page 181 of many | Previous | Next