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.
naturalToWordMaybe :: Natural -> Maybe Wordghc-internal GHC.Internal.Natural Try downcasting Natural to Word value. Returns Nothing if value doesn't fit in Word.
minusNaturalMaybe :: Natural -> Natural -> Maybe Naturalghc-internal GHC.Internal.Numeric.Natural Natural subtraction. Returns Nothings for non-positive results.
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.
readMaybe :: Read a => String -> Maybe aghc-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
nextMaybeF :: Int -> (Int -> Bool) -> (Int -> Int) -> (Maybe Int -> f a) -> f amassiv Data.Massiv.Core.Index No documentation available.
scatMaybes :: Stream r ix (Maybe a) => Array r ix (Maybe a) -> Vector DS amassiv Data.Massiv.Vector Keep all Maybes and discard the Nothings.
Examples
simapMaybe :: Stream r ix a => (ix -> a -> Maybe b) -> Array r ix a -> Vector DS bmassiv Data.Massiv.Vector Similar to smapMaybe, but map with an index aware function.
Examples
-
massiv Data.Massiv.Vector Similar to smapMaybeM, but map with an index aware function.
Examples
smapMaybe :: Stream r ix a => (a -> Maybe b) -> Array r ix a -> Vector DS bmassiv Data.Massiv.Vector Apply a function to each element of the array, while discarding Nothing and keeping the Maybe result.
Examples
-
massiv Data.Massiv.Vector Similar to smapMaybe, but with the Applicative function. Similar to mapMaybe id $ mapM f arr
Examples