Hoogle Search
Within LTS Haskell 24.27 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
nonEmpty :: forall (b :: Type -> Type) a . Functor b => Wizard b [a] -> Wizard b [a]wizards System.Console.Wizard Simply validator (not . null), makes a wizard fail if it gets an empty string.
nonEmpty :: [a] -> Maybe (NonEmpty a)redis-resp Data.Redis.Command nonEmpty efficiently turns a normal list into a NonEmpty stream, producing Nothing if the input is empty.