implemented selectGoaliePrompt

This commit is contained in:
Jonathan Lamothe
2019-10-31 00:46:12 -04:00
parent d215f27f4f
commit 2926e28e34
2 changed files with 49 additions and 3 deletions
+29 -1
View File
@@ -149,7 +149,11 @@ module Mtlstats.Types (
playerIsActive,
-- ** PlayerStats Helpers
psPoints,
addPlayerStats
addPlayerStats,
-- ** Goalie Helpers
goalieSearch,
goalieSearchExact,
goalieSummary
) where
import Control.Monad.Trans.State (StateT)
@@ -830,3 +834,27 @@ addPlayerStats s1 s2 = newPlayerStats
& psGoals .~ s1^.psGoals + s2^.psGoals
& psAssists .~ s1^.psAssists + s2^.psAssists
& psPMin .~ s1^.psPMin + s2^.psPMin
-- | Searches a list of goalies
goalieSearch
:: String
-- ^ The search string
-> [Goalie]
-- ^ The list to search
-> [(Int, Goalie)]
-- ^ The search results with their corresponding index numbers
goalieSearch = undefined
-- | Searches a list of goalies for an exact match
goalieSearchExact
:: String
-- ^ The search string
-> [Goalie]
-- ^ The list to search
-> Maybe (Int, Goalie)
-- ^ The result with its index number
goalieSearchExact = undefined
-- | Provides a description string for a 'Goalie'
goalieSummary :: Goalie -> String
goalieSummary = undefined