packages feed

heckle 2.0.1.8 → 2.0.1.9

raw patch · 2 files changed

+14/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

heckle.cabal view
@@ -1,5 +1,5 @@ name:                heckle-version:             2.0.1.8+version:             2.0.1.9 synopsis:            Jekyll in Haskell (feat. LaTeX) description:         A static site generator that supports LaTeX-PDF and Markdown-HTML posts. Care has been taken to make it configurable, easy to use, and unopinionated. 
heckle/Main.hs view
@@ -10,12 +10,17 @@ import System.Environment (getArgs) import System.Process     (readProcess) +import Paths_heckle (version)+import Data.Version (showVersion)++ import Heckle import Files  data Command   = Build   | Init+  | Version  withInfo :: InfoMod a -> Parser a -> ParserInfo a withInfo im p = info (helper <*> p) im@@ -29,9 +34,11 @@     parser :: Parser Command     parser = subparser $ mconcat       [ command "build" $ "Generate site"-           ==> pure Build+        ==> pure Build       , command "init" $ "Make new site template"-           ==> pure Init+        ==> pure Init+      , command "version" $ "Get the package version"+        ==> pure Version       ]  buildSite :: IO ()@@ -84,8 +91,12 @@    putStrLn "Success initializing!" +versionOfSite :: IO ()+versionOfSite = putStrLn ("heckle " ++ showVersion version)+ main = do     command <- execParser mainFlags     case command of       Build -> buildSite       Init  -> initSite+      Version -> versionOfSite