packages feed

journalctl-stream 0.4.0.0 → 0.5.0.0

raw patch · 3 files changed

+6/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Systemd.Journalctl.Stream: Entry :: Maybe ProcessID -> Text -> Maybe Text -> Maybe Text -> Maybe FilePath -> Cursor -> POSIXTime -> Maybe Text -> Text -> Entry
+ Systemd.Journalctl.Stream: Entry :: Maybe ProcessID -> Text -> Maybe Text -> Maybe Text -> Maybe FilePath -> Cursor -> POSIXTime -> Maybe Text -> Maybe Text -> Entry
- Systemd.Journalctl.Stream: [entryMessage] :: Entry -> Text
+ Systemd.Journalctl.Stream: [entryMessage] :: Entry -> Maybe Text

Files

changelog.md view
@@ -1,3 +1,6 @@+## 0.5.0.0+* Fix for field: `entryMessage`. This field is not always present.+ ## 0.4.0.0 * Changed arguments of `entryStream`. It now takes a value of type   `StreamStart`. This value can be used to indicate where the stream
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.4.0.0+version: 0.5.0.0 author: Daniel Casanueva (daniel.casanueva `at` proton.me) maintainer: Daniel Casanueva (daniel.casanueva `at` proton.me) license: MIT
lib/Systemd/Journalctl/Stream.hs view
@@ -76,7 +76,7 @@     -- | Unit name, if present.   , entryUnit :: Maybe Text     -- | Entry message.-  , entryMessage :: Text+  , entryMessage :: Maybe Text     } deriving Show  -- | Utility type to parse values (mainly numbers) that are received@@ -105,7 +105,7 @@     <*> o .: "__CURSOR"     <*> (secondsToNominalDiffTime . (/1000000) . asText <$> o .: "__REALTIME_TIMESTAMP")     <*> o .:? "UNIT"-    <*> o .: "MESSAGE"+    <*> o .:? "MESSAGE"  -- | Exception raised while streaming entries from journalctl. data Exception = JSONError String deriving Show