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

Moduleghc-internal-10.0.0Haskell2010

GHC.Internal.Data.List.NonEmpty

  • 1 type
  • 3 values
datadata NonEmpty a
#

Non-empty (and non-strict) list type.

Constructors

  • a :| [a]infixr 5
Instances20Monad, Functor, MonadFix, Applicative, Foldable, Traversable, …
valuezipWith :: (a -> b -> c) -> NonEmpty a -> NonEmpty b -> NonEmpty c
#

The zipWith function generalizes zip. Rather than tupling the elements, the elements are combined using the function passed as the first argument.