defined the structure of a goalie report

This commit is contained in:
Jonathan Lamothe
2019-11-28 05:46:56 -05:00
parent 4848e54d81
commit de67628df0
3 changed files with 58 additions and 2 deletions

View File

@@ -171,7 +171,10 @@ module Mtlstats.Types (
goalieSearch,
goalieSearchExact,
goalieSummary,
goalieIsActive
goalieIsActive,
-- ** GoalieStats Helpers
addGoalieStats,
gsAverage
) where
import Control.Monad.Trans.State (StateT)
@@ -990,3 +993,11 @@ goalieSummary g = g^.gName ++ " (" ++ show (g^.gNumber) ++ ")"
-- season
goalieIsActive :: Goalie -> Bool
goalieIsActive g = g^.gYtd.gsMinsPlayed /= 0
-- | Adds two sets of 'GoalieStats'
addGoalieStats :: GoalieStats -> GoalieStats -> GoalieStats
addGoalieStats = undefined
-- | Determines a goalie's average goals allowed per game.
gsAverage :: GoalieStats -> Rational
gsAverage = undefined