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.

  1. naturalToWordMaybe :: Natural -> Maybe Word

    ghc-internal GHC.Internal.Natural

    Try downcasting Natural to Word value. Returns Nothing if value doesn't fit in Word.

  2. minusNaturalMaybe :: Natural -> Natural -> Maybe Natural

    ghc-internal GHC.Internal.Numeric.Natural

    Natural subtraction. Returns Nothings for non-positive results.

  3. 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.

  4. 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
    

  5. nextMaybeF :: Int -> (Int -> Bool) -> (Int -> Int) -> (Maybe Int -> f a) -> f a

    massiv Data.Massiv.Core.Index

    No documentation available.

  6. 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

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

  8. 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

  9. 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

  10. 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

Page 181 of many | Previous | Next