hsyslog-udp 0.2.4 → 0.2.5
raw patch · 2 files changed
+22/−10 lines, 2 filesdep +network-bsddep ~basedep ~hspecdep ~networkPVP ok
version bump matches the API change (PVP)
Dependencies added: network-bsd
Dependency ranges changed: base, hspec, network, time
API changes (from Hackage documentation)
Files
- hsyslog-udp.cabal +19/−10
- src/System/Posix/Syslog/UDP.hs +3/−0
hsyslog-udp.cabal view
@@ -1,15 +1,15 @@ name: hsyslog-udp-version: 0.2.4+version: 0.2.5 synopsis: Log to syslog over a network via UDP description: Supports <https://tools.ietf.org/html/rfc5424 RFC 5424>, <https://tools.ietf.org/html/rfc3164 RFC 3164>, or any arbitrary protocol.-homepage: https://github.com/ThoughtLeadr/hsyslog-udp-bug-reports: https://github.com/ThoughtLeadr/hsyslog-udp/issues+homepage: https://github.com/k-bx/hsyslog-udp+bug-reports: https://github.com/k-bx/hsyslog-udp/issues license: BSD3 license-file: LICENSE author: Jon Childress <jon@childr.es>-maintainer: Kostiantyn Rybnikov <konstantine@thoughtleadr.com>+maintainer: Konstantine Rybnikov <k-bx@k-bx.com> category: System build-type: Simple extra-source-files: README.md@@ -17,8 +17,13 @@ Source-Repository head type: git- location: git://github.com/ThoughtLeadr/hsyslog-udp.git+ location: git://github.com/k-bx/hsyslog-udp.git +flag network--GE-3_0_0+ description: [network](http://hackage.haskell.org/package/network) ≥ 3.0.0+ default: True+ manual: False+ library default-language: Haskell2010 hs-source-dirs: src@@ -28,10 +33,14 @@ Build-Depends: base >= 3 && < 5 , bytestring < 0.11 , hsyslog >= 5 && < 6- , network < 2.9 , text < 1.3- , time < 1.9+ , time < 1.10 , unix < 2.8+ if flag(network--GE-3_0_0)+ build-depends: network-bsd >= 2.8.1 && <2.9,+ network >= 3.0 && <3.2+ else+ build-depends: network >= 2.6.3.1 && <2.9 test-suite specs default-language: Haskell2010@@ -40,7 +49,7 @@ type: exitcode-stdio-1.0 other-modules: System.Posix.Syslog.UDPSpec - Build-Depends: base >= 3 && < 5- , hspec < 2.6+ Build-Depends: base+ , hspec , hsyslog-udp- , time < 1.9+ , time
src/System/Posix/Syslog/UDP.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE CPP #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} @@ -68,7 +69,9 @@ import Control.Monad (void) import Data.Bits ((.|.)) import Data.ByteString (ByteString)+#if __GLASGOW_HASKELL__ < 808 import Data.Monoid ((<>))+#endif import Data.Text (Text) import Data.Time.Clock (UTCTime, getCurrentTime) import Data.Time.Format (FormatTime, formatTime, defaultTimeLocale)