@hackage / neononempty

NonEmpty lists that look [more, like, this]

Latest1.1.0

About

Metadata

  • Last updated , by 414owen
  • License BSD-3-Clause
  • Maintained by: owen@owen.cafe

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.6.2
  2. 9.4.5
  3. 9.2.8
  4. 9.0.2
  5. 8.10.7
  6. 8.8.4
  7. 8.6.5
  8. 8.4.4
  9. 8.2.2
  10. 8.0.2

Readme

This package provides NonEmpty, an alternative to the NonEmpty type in base.

It has a few differences from base's NonEmpty:

  • It has Show and Read instance similar to that of normal lists

  • It has a 100% safe API

  • It has a few added/removed/updated functions (see Data.List.NeoNonEmpty's module docs)

  • New functions aren't tied to new versions of GHC/base

The show instance is the original raison d'être. When scanning textual data, the brain can interpret uniformity more quickly. Which do you think is easier to scan?

x :| [y, z]
[x, y, z]

Now imagine this in various fields of a large compound structure, and you have two of them, and you're trying to find the difference.

>>>>>>>>>