list package:tomland

Codec for list of values. Represented in TOML as array of tables. Example: Haskell [Int] can look like this in your TOML file:
foo =
[ {a = 1}
, {a = 2}
, {a = 3}
]
Decodes to an empty list [] when the key is not present.
TOML-specific combinators for converting between TOML and Haskell list-like data types. There are two way to represent list-like structures with the tomland library.
  • Ordinary array lists of primitives:
    foo = [100, 200, 300]
    
  • Lists 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 list-like structures. See the following table for the better understanding: TODO: table
Helper BiMap for lists and NonEmpty.
Constructs PrefixMap structure from the given list of Key and value pairs.
Converts PrefixMap to the list of pairs.
Converts PrefixTree to the list of pairs.
Compare list of Value of possibly different types.