MPL-2.0 licensed by Kowainik
Maintained by [email protected]
This version can be pinned in stack with:tomland-0.3.1@sha256:d3bf5250bfe1cf6ecd0c255b40bc91c421d0088f42c2cef1e07acb5f0c10ac5f,3697


Hackage Build status Windows build status MPL-2.0 license

TOML parser


Change log

tomland uses PVP Versioning. The change log is available on GitHub.


  • #19: Add proper parsing of floating point numbers.
  • #15: Add parsing of multiline strings
  • #40: Support full-featured string parser
  • #18: Add dates parsing.
  • Add useful combinators for newtype wrappers.
  • #58: Add decodeFile function.


  • #8: Create EDSL for easier TOML data type writing.

  • #10: Add Semigroup and Monoid instances for PrefixTree and TOML. Add property tests on laws.

  • #20: Add parsing of hexadecimal, octal, and binary integer numbers.

  • #26: Implement unit tests for TOML parsers. Allow terminating commas inside an array. Allow comments before and after any value inside an array. Allow keys to be literal strings.

  • Breaking change: #60: Replace Valuer with Prism.

    Migration guide: replace any fooV with corresponding prism _Foo.

  • Breaking change: #66: Introduce consistent names according to Haskell types.

    Migration guide: see issue details to know which names to use.


  • Make table parser work with maybeP.
  • #39: Implement prettyException function for DecodeException.


  • Switch names for decode and encode functions.
  • #47: Rename dimapBijection to dimap. Introduce mdimap combinator.
  • #37: Add tables support for bidirectional conversion.


  • #16: Add parser for literal strings.
  • Add IsString instance for Key data type.
  • #38: Add bidirectional converter for array.
  • #21: Report expected vs. actual type error in parsing.
  • #44: Add bidirectional converter for Maybe.


  • #3: Implement basic TOML parser with megaparsec.
  • #7: Implement type safe version of Value type as GADT.
  • #4: Implement basic pretty-printer.
  • #1: Implement types representing TOML configuration.
  • Initially created.