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.
minusNaturalMaybe :: Natural -> Natural -> Maybe Naturalbase Numeric.Natural Natural subtraction. Returns Nothings for non-positive results.
readMaybe :: Read a => String -> Maybe abase 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
bitSizeMaybe :: Bits a => a -> Maybe Intbase GHC.Bits 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.
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