{-# LINE 1 "src/System/Posix/Syslog/Facility.hsc" #-}
{-# LANGUAGE DeriveGeneric #-}
module System.Posix.Syslog.Facility where
import Foreign.C.Types
import GHC.Generics ( Generic )
data Facility = Kernel
| User
| Mail
| News
| UUCP
| Daemon
| Auth
| Cron
| LPR
| Local0
| Local1
| Local2
| Local3
| Local4
| Local5
| Local6
| Local7
deriving (Show, Read, Bounded, Enum, Eq, Generic)
{-# INLINE fromFacility #-}
fromFacility :: Facility -> CInt
fromFacility Kernel = 0
{-# LINE 50 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility User = 8
{-# LINE 51 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Mail = 16
{-# LINE 52 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Daemon = 24
{-# LINE 53 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Auth = 32
{-# LINE 54 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility LPR = 48
{-# LINE 55 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility News = 56
{-# LINE 56 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility UUCP = 64
{-# LINE 57 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Cron = 72
{-# LINE 58 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local0 = 128
{-# LINE 59 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local1 = 136
{-# LINE 60 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local2 = 144
{-# LINE 61 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local3 = 152
{-# LINE 62 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local4 = 160
{-# LINE 63 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local5 = 168
{-# LINE 64 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local6 = 176
{-# LINE 65 "src/System/Posix/Syslog/Facility.hsc" #-}
fromFacility Local7 = 184
{-# LINE 66 "src/System/Posix/Syslog/Facility.hsc" #-}