packages feed

easy-logger 0.1.0.2 → 0.1.0.4

raw patch · 2 files changed

+11/−7 lines, 2 filesdep +directoryPVP ok

version bump matches the API change (PVP)

Dependencies added: directory

API changes (from Hackage documentation)

Files

easy-logger.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           easy-logger-version:        0.1.0.2+version:        0.1.0.4 synopsis:       Logging made easy. description:    Please see the README on GitHub at <https://github.com/githubuser/easy-logger#readme> category:       Logging@@ -65,6 +65,7 @@     , base >=4.7 && <5     , bytestring     , containers+    , directory     , easy-logger     , hspec     , quickcheck-assertions
test/Spec.hs view
@@ -7,6 +7,7 @@  import qualified Data.Text                  as T import           EasyLogger+import           System.Directory import           Test.QuickCheck  -- file Spec.hs@@ -59,11 +60,13 @@   main :: IO ()-main = hspec $ do-  describe "prop_Logging" $ do-    it "logs to file and reads content" $ prop_Logging+main = do+  createDirectoryIfMissing True "test/files"+  hspec $ do+    describe "prop_Logging" $ do+      it "logs to file and reads content" $ prop_Logging -  describe "initialization" $ do-    it "throws an exception if not initialized" $-      prop_NoInit `shouldThrow` anyException+    describe "initialization" $ do+      it "throws an exception if not initialized" $+        prop_NoInit `shouldThrow` anyException