{-# LINE 1 "src/Database/PostgreSQL/LibPQ/Oid.hsc" #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Database.PostgreSQL.LibPQ.Oid where



import Foreign.C.Types (CUInt)
import Foreign.Storable (Storable)

newtype Oid = Oid CUInt
  deriving stock (Oid -> Oid -> Bool
(Oid -> Oid -> Bool) -> (Oid -> Oid -> Bool) -> Eq Oid
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Oid -> Oid -> Bool
== :: Oid -> Oid -> Bool
$c/= :: Oid -> Oid -> Bool
/= :: Oid -> Oid -> Bool
Eq, Eq Oid
Eq Oid =>
(Oid -> Oid -> Ordering)
-> (Oid -> Oid -> Bool)
-> (Oid -> Oid -> Bool)
-> (Oid -> Oid -> Bool)
-> (Oid -> Oid -> Bool)
-> (Oid -> Oid -> Oid)
-> (Oid -> Oid -> Oid)
-> Ord Oid
Oid -> Oid -> Bool
Oid -> Oid -> Ordering
Oid -> Oid -> Oid
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
$ccompare :: Oid -> Oid -> Ordering
compare :: Oid -> Oid -> Ordering
$c< :: Oid -> Oid -> Bool
< :: Oid -> Oid -> Bool
$c<= :: Oid -> Oid -> Bool
<= :: Oid -> Oid -> Bool
$c> :: Oid -> Oid -> Bool
> :: Oid -> Oid -> Bool
$c>= :: Oid -> Oid -> Bool
>= :: Oid -> Oid -> Bool
$cmax :: Oid -> Oid -> Oid
max :: Oid -> Oid -> Oid
$cmin :: Oid -> Oid -> Oid
min :: Oid -> Oid -> Oid
Ord, ReadPrec [Oid]
ReadPrec Oid
Int -> ReadS Oid
ReadS [Oid]
(Int -> ReadS Oid)
-> ReadS [Oid] -> ReadPrec Oid -> ReadPrec [Oid] -> Read Oid
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
$creadsPrec :: Int -> ReadS Oid
readsPrec :: Int -> ReadS Oid
$creadList :: ReadS [Oid]
readList :: ReadS [Oid]
$creadPrec :: ReadPrec Oid
readPrec :: ReadPrec Oid
$creadListPrec :: ReadPrec [Oid]
readListPrec :: ReadPrec [Oid]
Read, Int -> Oid -> ShowS
[Oid] -> ShowS
Oid -> String
(Int -> Oid -> ShowS)
-> (Oid -> String) -> ([Oid] -> ShowS) -> Show Oid
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Oid -> ShowS
showsPrec :: Int -> Oid -> ShowS
$cshow :: Oid -> String
show :: Oid -> String
$cshowList :: [Oid] -> ShowS
showList :: [Oid] -> ShowS
Show)
  deriving newtype (Ptr Oid -> IO Oid
Ptr Oid -> Int -> IO Oid
Ptr Oid -> Int -> Oid -> IO ()
Ptr Oid -> Oid -> IO ()
Oid -> Int
(Oid -> Int)
-> (Oid -> Int)
-> (Ptr Oid -> Int -> IO Oid)
-> (Ptr Oid -> Int -> Oid -> IO ())
-> (forall b. Ptr b -> Int -> IO Oid)
-> (forall b. Ptr b -> Int -> Oid -> IO ())
-> (Ptr Oid -> IO Oid)
-> (Ptr Oid -> Oid -> IO ())
-> Storable Oid
forall b. Ptr b -> Int -> IO Oid
forall b. Ptr b -> Int -> Oid -> IO ()
forall a.
(a -> Int)
-> (a -> Int)
-> (Ptr a -> Int -> IO a)
-> (Ptr a -> Int -> a -> IO ())
-> (forall b. Ptr b -> Int -> IO a)
-> (forall b. Ptr b -> Int -> a -> IO ())
-> (Ptr a -> IO a)
-> (Ptr a -> a -> IO ())
-> Storable a
$csizeOf :: Oid -> Int
sizeOf :: Oid -> Int
$calignment :: Oid -> Int
alignment :: Oid -> Int
$cpeekElemOff :: Ptr Oid -> Int -> IO Oid
peekElemOff :: Ptr Oid -> Int -> IO Oid
$cpokeElemOff :: Ptr Oid -> Int -> Oid -> IO ()
pokeElemOff :: Ptr Oid -> Int -> Oid -> IO ()
$cpeekByteOff :: forall b. Ptr b -> Int -> IO Oid
peekByteOff :: forall b. Ptr b -> Int -> IO Oid
$cpokeByteOff :: forall b. Ptr b -> Int -> Oid -> IO ()
pokeByteOff :: forall b. Ptr b -> Int -> Oid -> IO ()
$cpeek :: Ptr Oid -> IO Oid
peek :: Ptr Oid -> IO Oid
$cpoke :: Ptr Oid -> Oid -> IO ()
poke :: Ptr Oid -> Oid -> IO ()
Storable)

invalidOid :: Oid
invalidOid :: Oid
invalidOid = CUInt -> Oid
Oid (CUInt
0)
{-# LINE 16 "src/Database/PostgreSQL/LibPQ/Oid.hsc" #-}