This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Either Right Left | |
{{ This type is used to capture the expected error message }} | |
unique type bowling.Error = Error Text | |
{{ | |
{score} takes in a list of numbers representing the pins knocked down for each roll of the bowling game, and should return either the total score or an error. | |
}} | |
bowling.score : [Nat] -> Either Error Nat | |
bowling.score rolls = |