nano-ui-markdown-0.2.0.0: examples/Main.hs
module Main (main) where
import ChatDemo (newChatDemoUi)
import NanoUI (Key (KeyEscape), Pressable (..), Size (..), WindowSettings (..), defaultWindowSettings)
import NanoUI.Backend.Sdl
( SdlOptions (..)
, defaultSdlOptions
, runSdlApp
)
main :: IO ()
main = do
chatDemoUi <- newChatDemoUi
runSdlApp
defaultSdlOptions
{ sdlWindowSettings = defaultWindowSettings {wsTitle = "nano-ui-markdown example", wsSize = Size 900 760}
, sdlAppShouldQuit = pressedOnceIn KeyEscape
}
chatDemoUi