hannah/src/Main.hs

16 lines
359 B
Haskell

module Main where
import Network.WebSockets (ClientApp, runClient)
import Control.Monad.Reader (runReaderT)
import Control.Monad.State (runStateT)
import Config (host, port, path)
import Automaton (initialState, start)
bot :: ClientApp ()
bot connection =
fst <$> runReaderT Automaton.start connection
main :: IO ()
main =
runClient host port path bot