distance character = case character.mobility of "Mobile" -> { character | position = character.position + distance } "Stationary" -> character _ -> character
does not have branches for all possibilities. 11|> case character.mobility of 12|> Mobile -> 13|> { character | position = character.position + distance } 14|> 15|> Stationary -> 16|> character You need to account for the following values: Flying
function `addBalance` is causing a mismatch. 21| addBalance user user.age ^^^^^^^^ Function `addBalance` is expecting the 2nd argument to be: Dollar But it is: Int