Monadoro 0.2.1.10 → 0.2.1.11
raw patch · 6 files changed
+12/−56 lines, 6 filesdep −template-haskellPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependencies removed: template-haskell
API changes (from Hackage documentation)
- Embeds: current_version :: ExpQ
- TH: version_template :: Q Exp
Files
- Monadoro.cabal +2/−7
- changelog +8/−0
- src/Embeds.hs +0/−29
- src/TH.hs +0/−18
- src/Version.hs +1/−1
- test/Spec.hs +1/−1
Monadoro.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: a1152e60c1c2645472f2da80420930641d1d8038311300d5d345be24cf3428f1+-- hash: b14e5b960dd8f4cd42b98cc5c1bcf096614133a4d6f76503728a2b8ff65940ca name: Monadoro-version: 0.2.1.10+version: 0.2.1.11 synopsis: A minimalistic CLI Pomodoro timer. description: A Pomodoro timer with two modes: single-pomodoro (default), and four-pomodoro (`--session`). category: Tools@@ -30,9 +30,7 @@ exposed-modules: ArgParse Clock- Embeds Pomodoro- TH Timer Version other-modules:@@ -43,7 +41,6 @@ ansi-terminal >=0.8 && <1 , base >=4.7 && <5 , process >=1.0 && <2- , template-haskell >=2.0 && <3 , time >=1.8 && <2 default-language: Haskell2010 @@ -59,7 +56,6 @@ , ansi-terminal >=0.8 && <1 , base >=4.7 && <5 , process >=1.0 && <2- , template-haskell >=2.0 && <3 , time >=1.8 && <2 default-language: Haskell2010 @@ -77,6 +73,5 @@ , base >=4.7 && <5 , doctest >=0.8 , process >=1.0 && <2- , template-haskell >=2.0 && <3 , time >=1.8 && <2 default-language: Haskell2010
changelog view
@@ -1,3 +1,11 @@+monadoro (2.1.11)++ * Fix -v switch.++ * Match reported package version to package.yaml using a script.++ * Remove experimental dependency on TemplateHaskell (TH).+ monadoro (2.1.9) * Source version number from package.yaml using TemplateHaskell.
− src/Embeds.hs
@@ -1,29 +0,0 @@-#!/usr/bin/env stack---stack --install-ghc runghc--{-# LANGUAGE TemplateHaskell #-}--module Embeds (current_version)- where--import System.Environment-import System.Exit-import System.Process-import Version (version)---- | Read current package version------ Example:------ >>> current_version >>= putStrLn :: IO ()--- 0.2.1.8------- Embed current package version in the output binary.---current_version = "%version"---current_version = $(version)-current_version = [| version |]----main :: IO ()---main = current_version >>= putStrLn :: IO ()-
− src/TH.hs
@@ -1,18 +0,0 @@-#!/usr/bin/env stack---stack --install-ghc runghc--{-# LANGUAGE TemplateHaskell #-}--module TH (version_template)-where--import Control.Monad-import Language.Haskell.TH--version_template :: Q Exp-version_template = [| \x -> x + 1 |]--main = version_template---- More: https://markkarpov.com/tutorial/th.html-
src/Version.hs view
@@ -23,7 +23,7 @@ return version_word version :: String-version = "0.2.1.10"+version = "0.2.1.11" main :: IO () main = putStrLn $ version
test/Spec.hs view
@@ -1,4 +1,4 @@ import Test.DocTest main :: IO ()-main = doctest ["-isrc", "src/Pomodoro.lhs", "src/Clock.lhs", "src/Timer.hs", "src/Version.hs", "src/TH.hs"]+main = doctest ["-isrc", "src/Pomodoro.lhs", "src/Clock.lhs", "src/Timer.hs", "src/Version.hs"]