ncurses framework

This commit is contained in:
Jonathan Lamothe
2019-08-13 10:11:10 -04:00
parent a95d8af96c
commit 44f596102e
7 changed files with 34 additions and 11 deletions

View File

@@ -1,6 +0,0 @@
module Lib
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn "someFunc"

12
src/Mtlstats.hs Normal file
View File

@@ -0,0 +1,12 @@
module Mtlstats (initState, mainLoop) where
import Control.Monad.Trans.State (StateT)
import UI.NCurses (Curses)
import Mtlstats.Types
initState :: Curses ProgState
initState = return ProgState
mainLoop :: StateT ProgState Curses ()
mainLoop = return ()

View File

@@ -2,6 +2,7 @@
module Mtlstats.Types (
-- * Types
ProgState (..),
Player (..),
PlayerStats (..),
Goalie (..),
@@ -54,6 +55,9 @@ import Data.Aeson
import Lens.Micro ((^.))
import Lens.Micro.TH (makeLenses)
-- | Represents the program state
data ProgState = ProgState
-- | Represents a (non-goalie) player
data Player = Player
{ _pNumber :: Int