Sha256: be5417732a53af706d0ed5edd34c01894bedc06e1d1693d1433a2df8c525b029

Contents?: true

Size: 279 Bytes

Versions: 277

Compression:

Stored size: 279 Bytes

Contents

module Bowling (score, BowlingError(..)) where

data BowlingError = IncompleteGame
                  | InvalidRoll { rollIndex :: Int, rollValue :: Int }
  deriving (Eq, Show)

score :: [Int] -> Either BowlingError Int
score rolls = error "You need to implement this function."

Version data entries

277 entries across 277 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.179 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.178 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.177 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.176 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.175 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.174 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.173 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.172 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.171 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.170 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.169 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.167 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.166 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.165 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.164 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.163 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.162 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.161 tracks/haskell/exercises/bowling/src/Bowling.hs
trackler-2.2.1.160 tracks/haskell/exercises/bowling/src/Bowling.hs