ncurses framework
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
module Lib
|
||||
( someFunc
|
||||
) where
|
||||
|
||||
someFunc :: IO ()
|
||||
someFunc = putStrLn "someFunc"
|
||||
12
src/Mtlstats.hs
Normal file
12
src/Mtlstats.hs
Normal 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 ()
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user