git.iko.soy/typeable/postgresql-simple
on master help sign in
Unpack the fields of the Notification structure
commitae27c48fd94cda62380601ac5271d6bded79df58 authorLeon P Smith <leon@melding-monads.com> dateSat 26 Dec 2015, 21:12 (11 years ago) parentc61ef23
1 file changed+3−3
src/Database/PostgreSQL/Simple/Notification.hs+3−3
src/Database/PostgreSQL/Simple/Notification.hs+3−3
@@ -55,9 +55,9 @@ import Control.Concurrent ( threadWaitReadSTM )
5555#endif
5656
5757data Notification = Notification
58− { notificationPid :: !CPid
59− , notificationChannel :: !B.ByteString
60− , notificationData :: !B.ByteString
58+ { notificationPid :: {-# UNPACK #-} !CPid
59+ , notificationChannel :: {-# UNPACK #-} !B.ByteString
60+ , notificationData :: {-# UNPACK #-} !B.ByteString
6161 }
6262
6363convertNotice :: PQ.Notify -> Notification