Package Info


Grouped lists. Equal consecutive elements are grouped


Grouped lists work like regular lists, except for two conditions:

  • Grouped lists are always finite. Attempting to construct an infinite grouped

list will result in an infinite loop.

  • Grouped lists internally represent consecutive equal elements as only one,

hence the name of /grouped lists/.

This mean that grouped lists are ideal for cases where the list has many repetitions (like '[1,1,1,1,7,7,7,7,7,7,7,7,2,2,2,2,2]', although they might present some deficiencies in the absent of repetitions.

License: BSD-3-Clause



Package Version Update ID Released Package Hub Version Platforms Subpackages info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • x86-64
  • ghc-grouped-list
  • ghc-grouped-list-devel