pg-recorder-0.2.0.0: Initial project template from stack

Safe HaskellNone
LanguageHaskell2010

PgRecorder

Description

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

Synopsis

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