Array package:yaml

A JSON "array" (sequence).
Construct a new Value from a list of Values.
withArray expected f value applies f to the Array when value is an Array and fails otherwise.

Error message example

withArray "MyType" f (String "oops")
-- Error: "parsing MyType failed, expected Array, but encountered String"