hscrtmpl 1.3 → 1.4
raw patch · 4 files changed
+14/−3 lines, 4 filesdep +time-locale-compat
Dependencies added: time-locale-compat
Files
- changelog.md +5/−0
- hscrtmpl.cabal +2/−1
- hscrtmpl.hs +4/−2
- util/prefs/boring +3/−0
changelog.md view
@@ -1,3 +1,8 @@+1.4 (2015-07-04)++ * Added time-locale-compat for backwards compatibility++ 1.3 (2015-07-03) * Most of the commented examples are now live code
hscrtmpl.cabal view
@@ -1,5 +1,5 @@ name: hscrtmpl-version: 1.3+version: 1.4 cabal-version: >= 1.8 build-type: Simple license: BSD3@@ -32,3 +32,4 @@ , process , regex-compat , time+ , time-locale-compat
hscrtmpl.hs view
@@ -19,11 +19,13 @@ Dino Morelli <dino@ui3.info> http://hub.darcs.net/dino/hscrtmpl- version: 1.3+ version: 1.4 -} import Control.Monad import Data.Time+-- For backwards compatibility with GHC < 7.10+import Data.Time.Locale.Compat ( defaultTimeLocale ) import System.Directory import System.Environment import System.Exit@@ -58,7 +60,7 @@ putStrLn =<< getEnv "SHELL" -- echo $SHELL -- arguments (System.Environment)- --(args1 : args2 : _) <- getArgs -- arg1=$1 ; arg2=$2+ --(arg1 : arg2 : _) <- getArgs -- arg1=$1 ; arg2=$2 -- string interpolation (Text.Printf) printf "The %s is %d\n" -- S="answer" ; D=42
util/prefs/boring view
@@ -45,6 +45,9 @@ # cabal intermediates \.installed-pkg-config \.setup-config+# cabal sandbox+^\.cabal-sandbox(/|$)+cabal\.sandbox\.config # standard cabal build dir, might not be boring for everybody ^dist(/|$) # autotools