List package:haskell-src-exts
ListOf a stores lists of the AST type
a, along with
a
SrcSpanInfo, in order to provide
Parseable instances
for lists. These instances are provided when the type is used as a
list in the syntax, and the same delimiters are used in all of its
usages. Some exceptions are made:
ordinary list comprehension
list type and data constructor []
The empty list expression.
- GHC § 7.3.9 Provide syntax for writing list comprehensions
which iterate over several lists together, like the zipWith
family of functions.
- GHC § 7.3.10 Enable generalized list comprehensions,
supporting operations such as sorting and grouping.
An explicit export specification.
An explicit import specification list.
A list of import specifications. The
Bool is
True if the
names are excluded by
hiding.
list syntax, e.g. [a], as opposed to [] a