Maintainer | Toshio Ito <debug.ito@gmail.com> |
---|---|
Safe Haskell | Safe |
Language | Haskell2010 |
Since: 1.0.0.0
Synopsis
- class Foldable t => NonEmptyLike t where
- singleton :: a -> t a
- append :: t a -> t a -> t a
- toNonEmpty :: t a -> NonEmpty a
Documentation
class Foldable t => NonEmptyLike t where Source #
Non-empty containers. Its cardinality is one or more.
Since: 1.0.0.0
singleton :: a -> t a Source #
Make a container with a single value.
append :: t a -> t a -> t a Source #
Append two containers.
toNonEmpty :: t a -> NonEmpty a Source #
Convert the container to NonEmpty
list.
Instances
NonEmptyLike First Source # | |
NonEmptyLike Last Source # | |
NonEmptyLike NonEmpty Source # | |
NonEmptyLike Multi Source # | |