some p applies the parser p one or more times and returns a
list of the values returned by p.
word = some letter:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Moduleparser-combinators-1.3.0Haskell2010
The module provides NonEmpty list variants of some of the functions from Control.Monad.Combinators.
some p applies the parser p one or more times and returns a
list of the values returned by p.
word = some letterendBy1 p sep parses one or more occurrences of p, separated and
ended by sep. Returns a non-empty list of values returned by p.
someTill p end works similarly to manyTill p end, but p
should succeed at least once.
See also: skipSome, skipSomeTill.
sepBy1 p sep parses one or more occurrences of p, separated by
sep. Returns a non-empty list of values returned by p.
sepEndBy1 p sep parses one or more occurrences of p, separated
and optionally ended by sep. Returns a non-empty list of values returned by
p.