List -package:brick
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 "]".
List separated with optional commas. Displayed with sep,
arguments of type a are parsed and pretty-printed as
b.