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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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.