Changelog for toml-parser-1.3.1.2
Revision history for toml-parser
1.3.1.2
- Bugfix: In some cases overlapping keys in inline tables could throw an exception instead instead of returning the proper semantic error value.
1.3.1.1
- Ensure years are rendered zero-padded
1.3.1.0
- Added
Toml.Semantics.Orderedfor preserving input TOML orderings - Added support for pretty-printing multi-line strings
1.3.0.0 -- 2023-07-16
- Make more structured error messages available in the low-level modules.
Consumers of the
Tomlmodule can keep getting simple error strings and users interested in structured errors can run the different layers independently to get more detailed error reporting. FromValueandToValueinstances for:Ratio,NonEmpty,Seq- Add
FromKeyandToKeyfor allowing codecs forMapto use various key types.
1.2.1.0 -- 2023-07-12
- Added
Toml.Pretty.prettyTomlOrderedto allow user-specified section ordering. - Added
FromValueandToValueinstances forText - Added
reqKeyOfandoptKeyOffor easier custom matching withoutFromValueinstances.
1.2.0.0 -- 2023-07-09
-
Remove
FromTableclass. This class existed for things that could be matched specifically from tables, which is what the top-level values always are. HoweverFromValuealready handles this, and both classes can fail, so having the extra level of checking doesn't avoid failure. It does, however, create a lot of noise generating instances. Note thatToTablecontinues to exist becausetoTableisn't allowed to fail, and when serializing to TOML syntax you can only serialize top-level tables. -
Extracted
Toml.FromValue.MatcherandToml.FromValue.ParseTableinto their own modules. -
Add
pickKey,liftMatcher,inKey,inIndex,parseTableFromValuetoToml.FromValue -
Replace
genericFromTablewithgenericParseTable. The intended way to derive aFromValueinstance is now to write:instance FromValue T where fromValue = parseTableFromValue genericParseTable
1.1.1.0 -- 2023-07-03
- Add support for GHC 8.10.7 and 9.0.2
1.1.0.0 -- 2023-07-03
- Add Toml.FromValue.Generic and Toml.ToValue.Generic
- Add Alternative instance to Matcher and support multiple error messages in Result
- Add Data and Generic instances for Value
1.0.1.0 -- 2023-07-01
- Add ToTable and ToValue instances for Map
- Refine error messages
- More test coverage
1.0.0.0 -- 2023-06-29
- Complete rewrite including 1.0.0 compliance and pretty-printing.
0.1.0.0 -- 2017-05-04
- First version.