-
(p. 233): Listing 8.11 is incorrect. It should read
exactLengthWith : (len : Nat) -> (input : Vect m a) -> Maybe (Vect len a) exactLengthWith {m} len input = case decEq m len of Yes prf => Just rewrite sym prf in input No contra => Nothing
- (p. 256): There is no function called
guess. Does this refer toprocessGuess(orgame) maybe?
- The definition of
getPrefixwith an explicitForceno longer works in Idris 1.3.1; indeed,xsis now reported to be of typeInfList typinstead ofInf (InfList ty).
-
The type of
Natin listing 12.33 is possibly erroneous; in any case, this listing doesn't type check as there is a mismatch betweenNat(type ofnewDiff) andInt(the type that's in the record declaration). -
Listing 12.32 is a bit idiosyncratic:
scoreis actually of typeGameState, so it should be renamed tostateand the variablestateshould be replaced by an underscore.
-
In listing 13.1, the declaration of
DoorCmdis incorrect: it should beDoorCmd : Type -> Type. -
In listing 13.13, it should be
StkInputinstead ofRPNInput.
-
(soft erratum) In listing 14.3, it should (probably) read
Lost : GameCmd () (Running 0 (S letters)) (const NotRunning)instead of
Lost : GameCmd () (Running 0 (S guesses)) (const NotRunning)