journalctl-stream 0.6.0.2 → 0.6.0.3
raw patch · 4 files changed
+11/−2 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +5/−0
- journalctl-stream.cabal +1/−1
- lib/Systemd/Journalctl/Stream.hs +3/−1
- readme.md +2/−0
changelog.md view
@@ -1,3 +1,8 @@+## 0.6.0.3+* Update parsing error message.+* Document `Lines` constructor further.+* Show stackage distributions in readme.+ ## 0.6.0.2 * Accept null values for `entryMessage`, returning `Nothing`.
journalctl-stream.cabal view
@@ -2,7 +2,7 @@ category: System synopsis: Stream logs using journalctl. description: Stream logs using journalctl. Check the documentation for more details.-version: 0.6.0.2+version: 0.6.0.3 author: Daniel Casanueva (daniel.casanueva `at` proton.me) maintainer: Daniel Casanueva (daniel.casanueva `at` proton.me) license: MIT
lib/Systemd/Journalctl/Stream.hs view
@@ -130,7 +130,7 @@ Just (JSON.Array arr) -> Just . Left . ByteString.pack <$> mapM parseJSON (toList arr) Just JSON.Null -> pure Nothing Nothing -> pure Nothing- _ -> fail $ "Couldn't parse MESSAGE. Expected String or Array."+ _ -> fail $ "Couldn't parse MESSAGE. Expected String, Array or Null." -- | Exception raised while streaming entries from journalctl. data Exception = JSONError String deriving Show@@ -142,6 +142,8 @@ -- | Start from the given time. StartTime LocalTime -- | Start from the given number of lines back.+ -- You can use @Lines 0@ to start the stream without+ -- looking for previous lines. | Lines Int -- | Start /at/ the given cursor. | AtCursor Cursor
readme.md view
@@ -5,3 +5,5 @@ ## Distribution [](https://hackage.haskell.org/package/journalctl-stream)+[](http://stackage.org/lts/package/journalctl-stream)+[](http://stackage.org/nightly/package/journalctl-stream)