tomlcheck 0.1.0.29 → 0.1.0.36
raw patch · 5 files changed
+14/−21 lines, 5 filesdep ~basedep ~htoml-megaparsecdep ~megaparsecsetup-changed
Dependency ranges changed: base, htoml-megaparsec, megaparsec
Files
- README.md +1/−1
- Setup.hs +0/−2
- app/Main.hs +7/−9
- stack.yaml +0/−4
- tomlcheck.cabal +6/−5
README.md view
@@ -22,7 +22,7 @@ ```bash $ cabal update- $ cabal install tomlcheck+ $ cabal new-install tomlcheck ``` ## Use
− Setup.hs
@@ -1,2 +0,0 @@-import Distribution.Simple-main = defaultMain
app/Main.hs view
@@ -7,15 +7,13 @@ ( main ) where -import Control.Applicative import Control.Monad-import qualified Data.Text.IO as TIO-import Data.Traversable (traverse)-import GHC.Generics (Generic)+import qualified Data.Text.IO as TIO+import GHC.Generics (Generic) import Options.Generic-import System.Exit (ExitCode (..), exitWith)-import Text.Megaparsec (parseErrorPretty)-import Text.Toml (parseTomlDoc)+import System.Exit (ExitCode (..), exitWith)+import Text.Megaparsec (errorBundlePretty)+import Text.Toml (parseTomlDoc) newtype Program = Program { file :: [FilePath] <?> "Path to file to be checked." } deriving (Generic)@@ -32,7 +30,7 @@ let paths = unHelpful $ file x contents <- traverse TIO.readFile paths case zipWithM parseTomlDoc paths contents of- Right _ -> pure ()+ Right _ -> mempty Left e -> do- putStrLn $ parseErrorPretty e+ putStrLn $ errorBundlePretty e exitWith (ExitFailure 1)
− stack.yaml
@@ -1,4 +0,0 @@-----resolver: lts-11.7-extra-deps:- - htoml-megaparsec-1.1.0.4
tomlcheck.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: tomlcheck-version: 0.1.0.29+version: 0.1.0.36 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2017-2018 Vanessa McHale@@ -15,7 +15,6 @@ build-type: Simple extra-source-files: cabal.project.local- stack.yaml extra-doc-files: README.md source-repository head@@ -32,12 +31,14 @@ main-is: Main.hs hs-source-dirs: app default-language: Haskell2010+ other-extensions: DataKinds DeriveGeneric OverloadedStrings+ TypeOperators ghc-options: -Wall build-depends:- base >=4.7 && <5,- htoml-megaparsec >=1.0.1.11,+ base >=4.9 && <5,+ htoml-megaparsec >=2.1.0.0, optparse-generic -any,- megaparsec >=6.0,+ megaparsec >=7.0, text -any if flag(development)