Weather update proxy in Haskell

-- Weather proxy device

module Main where

import System.ZMQ4.Monadic

main :: IO ()
main = runZMQ $ do
-- This is where the weather service sits
frontend <- socket XSub
connect frontend "tcp://"

-- This is our public endpoint for subscribers
backend <- socket XPub
bind backend "tcp://"

-- Run the proxy until the user interrupts us
proxy frontend backend Nothing