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.
spanMaybe :: TextualMonoid t => s -> (s -> t -> Maybe s) -> (s -> Char -> Maybe s) -> t -> (t, t, s)monoid-subclasses Data.Monoid.Textual A stateful variant of span, threading the result of the test function as long as it returns Just.
-
monoid-subclasses Data.Monoid.Textual Strict version of spanMaybe.
spanMaybe_ :: TextualMonoid t => s -> (s -> Char -> Maybe s) -> t -> (t, t, s)monoid-subclasses Data.Monoid.Textual spanMaybe_ s = spanMaybe s (const . Just)
spanMaybe_' :: TextualMonoid t => s -> (s -> Char -> Maybe s) -> t -> (t, t, s)monoid-subclasses Data.Monoid.Textual No documentation available.
indexMaybe :: OsString -> Int -> Maybe OsCharos-string System.OsString O(1) OsString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ShortByteString -> Int -> Maybe Word8os-string System.OsString.Data.ByteString.Short O(1) ShortByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: ShortByteString -> Int -> Maybe Word16os-string System.OsString.Data.ByteString.Short.Word16 O(1) ShortByteString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: OsString -> Int -> Maybe OsCharos-string System.OsString.Internal O(1) OsString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: PosixString -> Int -> Maybe PosixCharos-string System.OsString.Posix O(1) OsString index, starting from 0, that returns Just if:
0 <= n < length bs
indexMaybe :: WindowsString -> Int -> Maybe WindowsCharos-string System.OsString.Windows O(1) OsString index, starting from 0, that returns Just if:
0 <= n < length bs