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 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.8, 0.1.0.9, 0.1.0.14, 0.1.0.17, 0.1.0.18, 0.1.0.19, 0.1.0.23, 0.1.0.29
Dependencies base (>=4.8 && <5), htoml-megaparsec (>=1.0.1.1), megaparsec (>=6.0), optparse-generic, text, tomlcheck [details]
License BSD-3-Clause
Copyright Copyright: (c) 2017 Vanessa McHale
Author Vanessa McHale
Maintainer vanessa.mchale@reconfigure.io
Category Toml, Data
Home page https://github.com/vmchale/tomlcheck#readme
Source repo head: git clone https://github.com/vmchale/tomlcheck
Uploaded by vmchale at Thu Oct 12 04:38:47 UTC 2017
Distributions NixOS:0.1.0.29
Executables tomlcheck
Downloads 1507 total (46 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

Modules

[Index]

Flags

NameDescriptionDefaultType
development

Enable -Werror

DisabledManual

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for tomlcheck-0.1.0.2

[back to package description]

tomlcheck

Build Status Windows 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.

Installation

Binaries

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

Cabal

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
-------------------------------------------------------------------------------