From d0f237e707773be0cbf54bc92c25175a43c1795f Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Tue, 26 Nov 2019 00:34:01 -0500 Subject: [PATCH] implemented TableCell type --- src/Mtlstats/Types.hs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Mtlstats/Types.hs b/src/Mtlstats/Types.hs index 9555065..430bc0c 100644 --- a/src/Mtlstats/Types.hs +++ b/src/Mtlstats/Types.hs @@ -43,6 +43,7 @@ module Mtlstats.Types ( GameStats (..), Prompt (..), SelectParams (..), + TableCell (..), -- * Lenses -- ** ProgState Lenses database, @@ -622,6 +623,14 @@ data SelectParams a = SelectParams -- ^ The function to call when the selection doesn't exist } +-- | Describes a table cell +data TableCell + = CellText String + -- ^ A cell with text + | CellFill Char + -- ^ A cell filled with the given character + deriving (Eq, Show) + makeLenses ''ProgState makeLenses ''GameState makeLenses ''CreatePlayerState