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.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11
Moduleparser-combinators-1.3.1Haskell2010
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.