diff options
author | Ben Sima <ben@bsima.me> | 2023-08-14 20:48:10 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-08-16 14:29:43 -0400 |
commit | 2d8b280ed2c73d65fb905a580e9499bb7f69ff01 (patch) | |
tree | f9511f59603cd5128eaa3e47f6e90dd382afc9e8 /Biz/Dragons/Analysis.hs | |
parent | 1fd4c0be9efe017ed9f6f1dd9b5d9ab70b1bcee2 (diff) |
Run lint
Idk why these missed the linter. Probably packages updated in the
nixpkgs version bump.
Diffstat (limited to 'Biz/Dragons/Analysis.hs')
-rw-r--r-- | Biz/Dragons/Analysis.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Biz/Dragons/Analysis.hs b/Biz/Dragons/Analysis.hs index cfdbf2c..8641a6d 100644 --- a/Biz/Dragons/Analysis.hs +++ b/Biz/Dragons/Analysis.hs @@ -238,7 +238,8 @@ calculateScore 0 _ _ = 0 calculateScore a 0 0 | a > 0 = 100 calculateScore a b c | a < 0 || b < 0 || c < 0 = 0 calculateScore numTotal numBlackholes numLiabilities = - max 0 <. round + max 0 + <. round <| maxScore * (weightedBlackholes + weightedLiabilities + numGood) / numTotal |