Errata

Domain Modeling Made Functional

Errata for Domain Modeling Made Functional

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
ePub Page xxx
"Chapter 13", "Change 1: Adding Shipping Charges", "5th code block"

In the book, there is the following code block.

​type​ ShippingMethod =
​ | PostalService
​ | Fedex24
​ | Fedex48
​ | Ups48

​ ​type​ ShippingInfo = {
​ ShippingMethod : ShippingMethod
​ ShippingCost : Price
​ }

​ ​type​ PricedOrderWithShippingMethod = {
​ ShippingInfo : ShippingInfo
​ PricedOrder : PricedOrder

​ }

in this code, "​type​ PricedOrderWithShippingMethod" should be "type​ PricedOrderWithShippingInfo".

Note: Because I read the book in O'reilly Safari, I cannot tell the page number.

Nariyuki Saito  Jul 12, 2021 
ePub Page xxx
"Chapter 13", "Change 2: Adding Support for VIP Customers", "last code block"

There is the following code block.

type​ FreeVipShipping =
​ PricedOrderWithShippingMethod -> PricedOrderWithShippingMethod

in this code, "​type​ PricedOrderWithShippingMethod" should be "type​ PricedOrderWithShippingInfo".

Also, in other paragraphs in this section and the previous section (Change 1: Adding Shipping Charges), there seems to be confusion regarding the "PricedOrderWithShippingInfo" type.

Nariyuki Saito  Jul 12, 2021