Skip to content

Commit 8380020

Browse files
committed
Strict Scorer
1 parent 7304a06 commit 8380020

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Distribution/Server/Features/PackageRank.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{-# LANGUAGE TupleSections #-}
1+
{-# LANGUAGE TupleSections, BangPatterns #-}
22

33
-- TODO change the module name probably Distribution.Server.Features.PackageList.PackageRank
44

@@ -42,8 +42,8 @@ import System.FilePath ( isExtensionOf )
4242
import qualified System.IO as SIO
4343

4444
data Scorer = Scorer
45-
{ maximumS :: Float
46-
, score :: Float
45+
{ maximumS :: !Float
46+
, score :: !Float
4747
}
4848
deriving Show
4949

0 commit comments

Comments
 (0)