Safe Haskell | None |
---|---|
Language | Haskell2010 |
This is a haddock comment describing your library For more information on how to write Haddock comments check the user guide: https://www.haskell.org/haddock/doc/html/index.html
- listenSession :: AppConfig -> (ByteString -> ByteString -> IO ()) -> IO ()
- dbNotificationHandler :: Settings -> Text -> IO (ByteString -> ByteString -> IO ())
Documentation
listenSession :: AppConfig -> (ByteString -> ByteString -> IO ()) -> IO () Source #
Given a set of configurations and a way to handle notifications we loop forever fetching notifications and triggering the handler
dbNotificationHandler :: Settings -> Text -> IO (ByteString -> ByteString -> IO ()) Source #
Given a set of configurations creates a database connection pool and returns an IO database dispatcher to handle notifications