diff --git a/System/Posix/Syslog.hsc b/System/Posix/Syslog.hsc
--- a/System/Posix/Syslog.hsc
+++ b/System/Posix/Syslog.hsc
@@ -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
diff --git a/hsyslog.cabal b/hsyslog.cabal
--- a/hsyslog.cabal
+++ b/hsyslog.cabal
@@ -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
