tomlcheck 0.1.0.17 → 0.1.0.18
raw patch · 2 files changed
+6/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- src/Toml/Checker.hs +5/−4
- tomlcheck.cabal +1/−1
src/Toml/Checker.hs view
@@ -7,6 +7,7 @@ ( exec ) where +import Control.Monad (zipWithM) import qualified Data.Text.IO as TIO import GHC.Generics (Generic) import Options.Generic@@ -14,7 +15,7 @@ import Text.Megaparsec (parseErrorPretty) import Text.Toml (parseTomlDoc) -newtype Program = Program { file :: FilePath <?> "Path to file to be checked." }+newtype Program = Program { file :: [FilePath] <?> "Path to file to be checked." } deriving (Generic) programModifiers :: Modifiers@@ -26,9 +27,9 @@ exec :: IO () exec = do x <- getRecord "Command-line wrapper around htoml"- let path = unHelpful $ file x- contents <- TIO.readFile path- case parseTomlDoc path contents of+ let paths = unHelpful $ file x+ contents <- traverse TIO.readFile paths+ case zipWithM parseTomlDoc paths contents of Right _ -> pure () Left e -> do putStrLn $ parseErrorPretty e
tomlcheck.cabal view
@@ -1,5 +1,5 @@ name: tomlcheck-version: 0.1.0.17+version: 0.1.0.18 synopsis: Command-line tool to check syntax of TOML files description: This is a command-line wrapper around htoml-megaparsec. It is intended to be used as a syntax checker that can be