mtlstats/src/Mtlstats.hs

17 lines
343 B
Haskell
Raw Normal View History

2019-08-13 10:11:10 -04:00
module Mtlstats (initState, mainLoop) where
import Control.Monad.Trans.State (StateT)
2019-08-15 14:53:39 -04:00
import qualified UI.NCurses as C
2019-08-13 10:11:10 -04:00
import Mtlstats.Types
2019-08-15 14:53:39 -04:00
-- | Initializes the progran
initState :: C.Curses ProgState
initState = do
2019-08-15 20:24:12 -04:00
C.setEcho False
2019-08-15 14:53:39 -04:00
return ProgState
2019-08-13 10:11:10 -04:00
2019-08-15 14:53:39 -04:00
-- | Main program loop
mainLoop :: StateT ProgState C.Curses ()
2019-08-13 10:11:10 -04:00
mainLoop = return ()