git.iko.soy/typeable/postgresql-simple
on master help sign in
Fix module name in comment and add note about async exceptions
commit725aa687b80a9b8c9adb6fbdbbce7cd2cc5173af authorLeon P Smith <leon@melding-monads.com> dateThu 29 Dec 2011, 13:19 (15 years ago) parent7c72da4
1 file changed+4−1
src/Database/PostgreSQL/Simple/Notification.hs+4−1
src/Database/PostgreSQL/Simple/Notification.hs+4−1
@@ -2,7 +2,7 @@
22
33-----------------------------------------------------------------------------
44-- |
5−-- Module : Database.HDBC.PostgreSQL.Notification
5+-- Module : Database.PostgreSQL.Simple.Notification
66-- Copyright : (c) 2011 Leon P Smith
77-- License : BSD3
88--
@@ -57,6 +57,9 @@ getNotification conn = do
5757 -- 3. and if we raise it ourself
5858 -- If 1 happens, then it doesn't matter if the MVar is locked or not,
5959 -- and if 2 or 3 happens then the connection should be unlocked.
60+ --
61+ -- Note, however, that this function is not safe from asynchronous
62+ -- exceptions, which probably ought to be fixed.
6063 loop conn c = do
6164 mmsg <- PQ.notifies c
6265 case mmsg of