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.

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

    base GHC.Natural

    Natural subtraction. Returns Nothings for non-positive results.

  2. naturalToWordMaybe :: Natural -> Maybe Word

    base GHC.Natural

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

  3. naturalToWordMaybe# :: Natural -> (# (# #) | Word# #)

    base GHC.Num

    No documentation available.

  4. indexMaybe :: ByteString -> Int -> Maybe Word8

    bytestring Data.ByteString

    O(1) ByteString index, starting from 0, that returns Just if:

    0 <= n < length bs
    

  5. indexMaybe :: ByteString -> Int -> Maybe Char

    bytestring Data.ByteString.Char8

    O(1) ByteString index, starting from 0, that returns Just if:

    0 <= n < length bs
    

  6. indexMaybe :: ByteString -> Int64 -> Maybe Word8

    bytestring Data.ByteString.Lazy

    O(c) ByteString index, starting from 0, that returns Just if:

    0 <= n < length bs
    

  7. indexMaybe :: ByteString -> Int64 -> Maybe Char

    bytestring Data.ByteString.Lazy.Char8

    O(1) ByteString index, starting from 0, that returns Just if:

    0 <= n < length bs
    

  8. indexMaybe :: ShortByteString -> Int -> Maybe Word8

    bytestring Data.ByteString.Short

    O(1) ShortByteString index, starting from 0, that returns Just if:

    0 <= n < length bs
    

  9. indexMaybe :: ShortByteString -> Int -> Maybe Word8

    bytestring Data.ByteString.Short.Internal

    O(1) ShortByteString index, starting from 0, that returns Just if:

    0 <= n < length bs
    

  10. mapMaybe :: (a -> Maybe b) -> IntMap a -> IntMap b

    containers 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"
    

Page 100 of many | Previous | Next