timeprint 0.1.0.2 → 0.1.0.3
raw patch · 3 files changed
+8/−4 lines, 3 filesdep +datetimedep −timePVP ok
version bump matches the API change (PVP)
Dependencies added: datetime
Dependencies removed: time
API changes (from Hackage documentation)
Files
- ChangeLog.md +4/−0
- src/Text/Show/TimePrint.hs +2/−2
- timeprint.cabal +2/−2
ChangeLog.md view
@@ -11,3 +11,7 @@ 0.1.0.2 -- 2016-06-04 * Support for Haskell 7.10 >= only++0.1.0.3++* Use Data.DateTime for more compatibility
src/Text/Show/TimePrint.hs view
@@ -1,12 +1,12 @@ module Text.Show.TimePrint (timePrint) where import System.IO-import Data.Time+import Data.DateTime getTime :: IO String getTime = do now <- getCurrentTime- return (formatTime defaultTimeLocale "%T" now)+ return (formatDateTime "%T" now) timePrint :: Show a => a -> IO () timePrint a = do
timeprint.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: timeprint-version: 0.1.0.2+version: 0.1.0.3 synopsis: Prints timestamps after each line evaluated description: Prints timestamps after each line evaluated in 'ghci'.@@ -26,7 +26,7 @@ exposed-modules: Text.Show.TimePrint -- other-modules: -- other-extensions: - build-depends: base >=4.6 && <4.10, time >=1.5 && <1.7+ build-depends: base >=4.6 && <4.10, datetime >=0.3.1 && <0.4 hs-source-dirs: src default-language: Haskell2010