glicko 0.1.1.0 → 0.1.1.1
raw patch · 2 files changed
+46/−8 lines, 2 filesdep ~QuickCheckdep ~data-defaultdep ~hspecPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheck, data-default, hspec
API changes (from Hackage documentation)
Files
- glicko.cabal +7/−8
- test/Paper.hs +39/−0
glicko.cabal view
@@ -1,8 +1,8 @@--- Initial haskell-glicko.cabal generated by cabal init. For further +-- Initial haskell-glicko.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ name: glicko-version: 0.1.1.0+version: 0.1.1.1 synopsis: Glicko-2 implementation in Haskell. description: Implementation of the rating algorithm Glicko-2 by Professor Mark E. Glickman@@ -27,11 +27,9 @@ Ranking.Glicko.Core Ranking.Glicko.Inference Ranking.Glicko.Types- -- other-modules:- -- other-extensions: build-depends: base >= 4.8 && < 5 , containers >= 0.5 && < 0.6- , data-default >= 0.5 && < 0.6+ , data-default >= 0.5 && < 0.8 , deepseq >= 1.4 && < 1.5 , lens >= 4.12 && < 5 , parallel >= 3.2 && < 3.3@@ -43,11 +41,12 @@ type: exitcode-stdio-1.0 hs-source-dirs: test main-is: Spec.hs+ other-modules: Paper build-depends: base- , data-default >= 0.5 && < 0.6+ , data-default >= 0.5 && < 0.8 , glicko- , hspec >= 2.1 && < 2.3+ , hspec >= 2.1 && < 2.5 , lens >= 4.12 && < 5- , QuickCheck >= 2.8 && < 2.9+ , QuickCheck >= 2.8 && < 2.10 ghc-options: -threaded -rtsopts -with-rtsopts=-N -O default-language: Haskell2010
+ test/Paper.hs view
@@ -0,0 +1,39 @@+module Paper where++import Ranking.Glicko++players :: [Player]+players =+ [ Player { _pid = 1+ , _rating = 1500+ , _dev = 200+ , _vol = 0.06+ , _inactivity = 0+ , _age = 0 }++ , Player { _pid = 2+ , _rating = 1400+ , _dev = 30+ , _vol = 0.06+ , _inactivity = 0+ , _age = 0 }++ , Player { _pid = 3+ , _rating = 1550+ , _dev = 100+ , _vol = 0.06+ , _inactivity = 0+ , _age = 0 }++ , Player { _pid = 4+ , _rating = 1700+ , _dev = 300+ , _vol = 0.06+ , _inactivity = 0+ , _age = 0 }]++matches :: [Match]+matches =+ [ Match 1 2 1 0+ , Match 1 3 0 1+ , Match 1 4 0 1]