Hoogle Search
Within LTS Haskell 24.32 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
minusNaturalMaybe :: Natural -> Natural -> Maybe Naturalbase GHC.Natural Natural subtraction. Returns Nothings for non-positive results.
naturalToWordMaybe :: Natural -> Maybe Wordbase GHC.Natural Try downcasting Natural to Word value. Returns Nothing if value doesn't fit in Word.
naturalToWordMaybe# :: Natural -> (# (# #) | Word# #)base GHC.Num No documentation available.
indexMaybe :: ByteString -> Int -> Maybe Word8bytestring Data.ByteString O(1) ByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ByteString -> Int -> Maybe Charbytestring Data.ByteString.Char8 O(1) ByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ByteString -> Int64 -> Maybe Word8bytestring Data.ByteString.Lazy O(c) ByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ByteString -> Int64 -> Maybe Charbytestring Data.ByteString.Lazy.Char8 O(1) ByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ShortByteString -> Int -> Maybe Word8bytestring Data.ByteString.Short O(1) ShortByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ShortByteString -> Int -> Maybe Word8bytestring Data.ByteString.Short.Internal O(1) ShortByteString index, starting from 0, that returns Just if:
0 <= n < length bs
mapMaybe :: (a -> Maybe b) -> IntMap a -> IntMap bcontainers Data.IntMap.Internal Map values and collect the Just results.
let f x = if x == "a" then Just "new a" else Nothing mapMaybe f (fromList [(5,"a"), (3,"b")]) == singleton 5 "new a"