Thank you for purchasing Functional and Reactive Domain Modeling. Please post any errors, other than those listed below, in the book's
Author Online Forum. We'll publish a comprehensive list for everyone's convenience. Thank you!
Last updated October 29, 2017
-
Incorrect listing reference in Exceptions in Scala sidebar (in 1.3.1), Page 22:
Exceptions in Scala sidebar (in 1.3.1) references generateAuditLog in listing 1.6, but the listing does not contain generateAuditLog. The listing should be 1.8.
-
Object declaration for AccountService, Listing 1.10, Page 29:
object AccountService extends AccountService
This object declaration should be outside of the closing brace for trait AccountService. In other words, the object declaration should be below the closing brace that appears on the next line, rather than above it.
-
Applicative for List, code listing towards the end, Page 123:
In the definition for method ap, the List should occur in first position as defined by the Applicative trait. The correct method definition should be:
override def ap[A, B](as: List[A])(fs: List[A => B])
-
Listing 8.7 under A Sample Run, Page 251:
scala> res0.unsafePerformAsync needs to have the function argument. This needs to change to:
scala> import scalaz._
scala> import Scalaz._
scala> import \/._
scala> res0.unsafePerformAsync {
| case -\/(ex) => ex.printStackTrace
| case \/-(value) => println(value)
| }