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.
manyTill' :: MonadPlus m => m a -> m b -> m [a]attoparsec Data.Attoparsec.ByteString manyTill' p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:
simpleComment = string "<!--" *> manyTill' anyChar (string "-->")
(Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.) The value returned by p is forced to WHNF.skipMany :: Alternative f => f a -> f ()attoparsec Data.Attoparsec.ByteString Skip zero or more instances of an action.
skipMany1 :: Alternative f => f a -> f ()attoparsec Data.Attoparsec.ByteString Skip one or more instances of an action.
many' :: MonadPlus m => m a -> m [a]attoparsec Data.Attoparsec.ByteString.Char8 many' p applies the action p zero or more times. Returns a list of the returned values of p. The value returned by p is forced to WHNF.
word = many' letter
many1 :: Alternative f => f a -> f [a]attoparsec Data.Attoparsec.ByteString.Char8 many1 p applies the action p one or more times. Returns a list of the returned values of p.
word = many1 letter
many1' :: MonadPlus m => m a -> m [a]attoparsec Data.Attoparsec.ByteString.Char8 many1' p applies the action p one or more times. Returns a list of the returned values of p. The value returned by p is forced to WHNF.
word = many1' letter
manyTill :: Alternative f => f a -> f b -> f [a]attoparsec Data.Attoparsec.ByteString.Char8 manyTill p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:
simpleComment = string "<!--" *> manyTill anyChar (string "-->")
(Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.)manyTill' :: MonadPlus m => m a -> m b -> m [a]attoparsec Data.Attoparsec.ByteString.Char8 manyTill' p end applies action p zero or more times until action end succeeds, and returns the list of values returned by p. This can be used to scan comments:
simpleComment = string "<!--" *> manyTill' anyChar (string "-->")
(Note the overlapping parsers anyChar and string "-->". While this will work, it is not very efficient, as it will cause a lot of backtracking.) The value returned by p is forced to WHNF.skipMany :: Alternative f => f a -> f ()attoparsec Data.Attoparsec.ByteString.Char8 Skip zero or more instances of an action.
skipMany1 :: Alternative f => f a -> f ()attoparsec Data.Attoparsec.ByteString.Char8 Skip one or more instances of an action.