[Haskell-cafe] The Good, the Bad and the GUI

Chris Warburton chriswarbo at googlemail.com
Thu Aug 14 08:36:39 UTC 2014


Wojtek Narczyński <wojtek at power.com.pl> writes:

> On 13.08.2014 22:49, Steve Schafer wrote:
>> Why? Why are any of these erroneous line items included in the total? I
>> would argue that an incomplete or otherwise erroneous line item is not
>> part of the invoice.
> Say that the error is merely a warning, for example the user entered
> A' which is suspiciously short.

The goalposts have moved again, although this time it's trivial:

checkForWarnings :: Invoice -> [Warning]

What counts as a warning, how they affect the workflow and how they're
presented are business decisions.

Cheers,
Chris


More information about the Haskell-Cafe mailing list