hsyslog 1.5 → 1.6
raw patch · 2 files changed
+14/−4 lines, 2 files
Files
- System/Posix/Syslog.hsc +11/−1
- hsyslog.cabal +3/−3
System/Posix/Syslog.hsc view
@@ -1,4 +1,7 @@ {-# LANGUAGE ForeignFunctionInterface #-}+#if __GLASGOW_HASKELL__ >= 706+{-# LANGUAGE DeriveGeneric #-}+#endif {- | Module : System.Posix.Syslog Copyright : (c) 2008 Peter Simons@@ -16,6 +19,9 @@ import Control.Exception ( bracket_ ) import Foreign.C+#if __GLASGOW_HASKELL__ >= 706+import GHC.Generics+#endif #include <syslog.h> #ifndef LOG_AUTHPRIV@@ -43,7 +49,11 @@ | Notice -- ^ normal but significant condition | Info -- ^ informational | Debug -- ^ debug-level messages- deriving (Eq, Bounded, Show)+ deriving ( Eq, Bounded, Show+#if __GLASGOW_HASKELL__ >= 706+ , Generic+#endif+ ) instance Enum Priority where toEnum #{const LOG_EMERG} = Emergency
hsyslog.cabal view
@@ -1,5 +1,5 @@ Name: hsyslog-Version: 1.5+Version: 1.6 Copyright: Peter Simons License: BSD3 License-File: LICENSE@@ -8,13 +8,13 @@ Homepage: http://github.com/peti/hsyslog Bug-Reports: http://github.com/peti/hsyslog/issues Category: Foreign-Synopsis: FFI interface to syslog(3) from POSIX.1-2001.+Synopsis: FFI interface to syslog(3) from POSIX.1-2001 Description: This library provides FFI bindings to syslog(3) from POSIX.1-2001. See <http://www.opengroup.org/onlinepubs/009695399/basedefs/syslog.h.html> for further details. Cabal-Version: >= 1.6 Build-Type: Simple-Tested-With: GHC >= 6.10.4 && <= 7.6.2+Tested-With: GHC >= 6.10.4 && <= 7.6.3 Source-Repository head Type: git