HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleparser-combinators-1.3.1Haskell2010

Control.Applicative.Combinators.NonEmpty

The module provides NonEmpty list variants of some of the functions from Control.Applicative.Combinators.

  • 5 values
valuesome :: Alternative m => m a -> m (NonEmpty a)
#

some p applies the parser p one or more times and returns a list of the values returned by p.

word = some letter
valueendBy1 :: Alternative m => m a -> m sep -> m (NonEmpty a)
#

endBy1 p sep parses one or more occurrences of p, separated and ended by sep. Returns a non-empty list of values returned by p.

valuesepBy1 :: Alternative m => m a -> m sep -> m (NonEmpty a)
#

sepBy1 p sep parses one or more occurrences of p, separated by sep. Returns a non-empty list of values returned by p.

valuesepEndBy1 :: Alternative m => m a -> m sep -> m (NonEmpty a)
#

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.