postgres-websockets-0.8.0.0: app/Main.hs
module Main where
import Protolude
import PostgresWebsockets
import System.IO (BufferMode (..), hSetBuffering)
main :: IO ()
main = do
hSetBuffering stdout LineBuffering
hSetBuffering stdin LineBuffering
hSetBuffering stderr NoBuffering
putStrLn $ ("postgres-websockets " :: Text)
<> prettyVersion
<> " / Connects websockets to PostgreSQL asynchronous notifications."
conf <- loadConfig
void $ serve conf