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

[ bsd3, data, 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]
Versions [RSS] [faq],,,,,,,,,,,,,,
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 2018-09-04T22:54:53Z
Category Toml, Data
Home page
Source repo head: git clone
Uploaded by vmchale at 2017-10-12T04:28:54Z
Distributions NixOS:
Executables tomlcheck
Downloads 7240 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2017-10-12 [all 1 reports]



Manual Flags


Enable `-Werror`

Automatic Flags

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