Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This type helps to build up computations that can validate a TOML value and compute some application-specific representation.
It supports warning messages which can be used to deprecate old configuration options and to detect unused table keys.
It supports tracking multiple error messages when you have more than one decoding option and all of them have failed.
Documentation
Computations that result in a Result
and which track a list
of nested contexts to assist in generating warnings and error
messages.
Computation outcome with error and warning messages. Multiple error messages can occur when multiple alternatives all fail. Resolving any one of the error messages could allow the computation to succeed.