hannah/src/Main.hs

15 lines
335 B
Haskell
Raw Normal View History

module Main where
import Network.WebSockets (ClientApp, runClient)
import Control.Monad.Reader (runReaderT)
import Control.Monad.State (runStateT)
import Config (host, port, path)
2019-08-19 18:48:11 +02:00
import Automaton (start)
bot :: ClientApp ()
2019-08-19 18:48:11 +02:00
bot connection = runReaderT Automaton.start connection
main :: IO ()
main =
runClient host port path bot