List
The List data type and its operations
WARNING
This module is considered internal.
The Package Versioning Policy does not apply.
The contents of this module may change in any way whatsoever
and without any warning between minor versions of this package.
Authors importing this module are expected to track development
closely.
Description
Extra list functions
In separate module to aid testing.
This module provides utility functions on lists used by the library
implementation.
NOTE It is recommended to start using
Data.Conduit.Combinators instead of this module.
Higher-level functions to interact with the elements of a stream. Most
of these are based on list functions.
Note that these functions all deal with individual elements of a
stream as a sort of "black box", where there is no introspection of
the contained elements. Values such as
ByteString and
Text will likely need to be treated specially to deal with
their contents properly (
Word8 and
Char,
respectively). See the
Data.Conduit.Binary and
Data.Conduit.Text modules in the
conduit-extra
package.
List conversions and utilities.
Utility functions to work with lists and
NonEmpty lists.
List. Import as:
import qualified RIO.List as L
This module does not export any partial functions. For those, see
RIO.List.Partial
Heterogeneous list. Represented in a configuration file as an opening
square bracket "[", followed by a comma-separated series of
values, ending with a closing square bracket "]".
This module provides a scrollable list type and functions for
manipulating and rendering it.
Note that lenses are provided for direct manipulation purposes, but
lenses are *not* safe and should be used with care. (For example,
listElementsL permits direct manipulation of the list container
without performing bounds checking on the selected index.) If you need
a safe API, consider one of the various functions for list
manipulation. For example, instead of
listElementsL, consider
listReplace.
An alias for
GenericList specialized to use a
Vector
as its container type.