tomlcheck: Command-line tool to check syntax of TOML files

[ bsd3, data, library, program, toml ] [ Propose Tags ]

This is a command-line wrapper around htoml-megaparsec. It is intended to be used as a syntax checker that can be called by your text editor.

[Skip to Readme]
Dependencies base (>=4.8 && <5), htoml-megaparsec (>= && <, megaparsec (>=6.0), optparse-generic, text, tomlcheck [details]
License BSD-3-Clause
Copyright Copyright: (c) 2017 Vanessa McHale
Author Vanessa McHale
Revised Revision 1 made by vmchale at Tue Sep 4 22:54:53 UTC 2018
Category Toml, Data
Home page
Source repo head: git clone
Uploaded by vmchale at Thu Oct 12 04:28:54 UTC 2017
Distributions NixOS:
Executables tomlcheck
Downloads 1807 total (92 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-10-12 [all 1 reports]
Hackage Matrix CI





Enable -Werror


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for tomlcheck-

[back to package description]


Build Status

tomlcheck is a command-line wrapper around the htoml library which can be used as a syntax checker for TOML.

You can find a vim plugin here.



Head over to the release page to see if your platform has binaries. Simply put it somewhere on your path.


Install GHC along with cabal, then

 $ cabal update
 $ cabal install tomlcheck

Known Deficiencies

  • No Windows binaries
  • Slow on large files (>7000 lines)

Cool Facts

  • It's really fast
  • It uses laziness to make checking schnell yet robust
 Language            Files        Lines         Code     Comments       Blanks
 Cabal                   1           58           53            1            4
 Haskell                 3           40           28            4            8
 Justfile                1           21           16            0            5
 Markdown                2           42           42            0            0
 TOML                    3           87           78            0            9
 YAML                    1            9            9            0            0
 Total                  11          257          226            5           26