Documentation
listToNonEmpty :: Monad m => [a] -> m (NonEmpty a)Source
Tries to convert a list to a NonEmpty. Returns the NonEmpty if it can, or fails in the monad otherwise.
nonEmptyToList :: NonEmpty a -> [a]Source
Semantic function for NonEmpty
listToNonEmpty :: Monad m => [a] -> m (NonEmpty a)Source
Tries to convert a list to a NonEmpty. Returns the NonEmpty if it can, or fails in the monad otherwise.
nonEmptyToList :: NonEmpty a -> [a]Source
Semantic function for NonEmpty