TOML-specific combinators for converting between TOML and Haskell
Set-like data types.
There are two way to represent list-like structures with the
tomland library.
Ordinary array sets of primitives:
foo = [100, 200, 300]
Sets via tables:
foo = [ {x = 100} , {x = 200} , {x = 300} ]
OR [[foo]] x = 100 [[foo]] x = 200 [[foo]] x = 300
You can find both types of the codecs in this module for different
set-like structures. See the following table for the better
understanding:
TODO: table
Codec for hash sets. Takes converter for single hashable value and
returns a set of hashable values.
Example:
Haskell HashSetInt can look like this in your
TOML file:
foo = [1, 2, 3]
In case of the missing field, the following error will be seen: