packages feed

shelly 0.15.2 → 0.15.3

raw patch · 3 files changed

+30/−5 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Shelly: sleep :: Int -> Sh ()

Files

Shelly.hs view
@@ -65,14 +65,15 @@          -- * convert between Text and FilePath          , toTextIgnore, toTextWarn, fromText -         -- * Utilities.-         , (<$>), whenM, unlessM, time+         -- * Utility Functions+         , whenM, unlessM, time, sleep            -- * Re-exported for your convenience-         , liftIO, when, unless, FilePath+         , liftIO, when, unless, FilePath, (<$>)           -- * internal functions for writing extensions          , get, put+          -- * find functions          , find, findWhen, findFold, findDirFilter, findDirFilterWhen, findFoldDirFilter          ) where@@ -974,3 +975,7 @@   res <- what   t' <- liftIO getCurrentTime   return (realToFrac $ diffUTCTime t' t, res)++-- | threadDelay wrapper that uses seconds+sleep :: Int -> Sh ()+sleep = liftIO . threadDelay . (1000 * 1000 *)
shelly.cabal view
@@ -1,6 +1,6 @@ Name:       shelly -Version:     0.15.2+Version:     0.15.3 Synopsis:    shell-like (systems) programming in Haskell  Description: Shelly provides convenient systems programming in Haskell,@@ -43,7 +43,6 @@                , system-filepath >= 0.4.7 && < 0.5                , system-fileio < 0.4                , bytestring-               , containers    ghc-options: -Wall @@ -61,6 +60,18 @@                  , bytestring                  , hspec >= 1.4                  , HUnit++-- test out kiling while sleeping+test-suite sleep+  type:           exitcode-stdio-1.0+  main-is: test/sleep.hs+  Build-depends: base >= 4 && < 5, containers+               , time, directory, text, mtl+               , process >= 1.0+               , unix-compat < 0.5+               , system-filepath >= 0.4.7 && < 0.5+               , system-fileio < 0.4+               , bytestring  -- demonstarated that command output in Shellish was not shown until after the command finished -- not necessary anymore
+ test/sleep.hs view
@@ -0,0 +1,9 @@+{-# Language OverloadedStrings #-}+import Shelly++main :: IO ()+main =+  shelly $ do+    echo "sleeping"+    sleep 5+    echo "all done"