Sum package:ghc-lib-parser

Last two are the locations of the '|' before and after the payload
The sum function computes the sum of the numbers of a structure.

Examples

Basic usage:
>>> sum []
0
>>> sum [42]
42
>>> sum [1..10]
55
>>> sum [4.1, 2.0, 1.7]
7.8
>>> sum [1..]
* Hangs forever *
An unboxed sum type.
Anonymous sum pattern
The width of an unboxed sum
In UnboxedSumE and UnboxedSumP, the number associated with a particular data constructor. SumAlts are one-indexed and should never exceed the value of its corresponding SumArity. For example:
In UnboxedSumE, UnboxedSumT, and UnboxedSumP, the total number of SumAlts. For example, (#|#) has a SumArity of 2.
Data constructor for i-th alternative of a n-ary unboxed sum.
Type constructor for n-ary unboxed sum.