Closed
Description
Try
array.traverse(validation)
Using latest typescript version (next) after 2.6.0-dev.20171006
(fp-ts is 0.5.2)
typeof ".../fp-ts/lib/Validation"' is not assignable to parameter of type 'Applicative<"Validation">'.
Types of property 'ap' are incompatible.
Type '<L, A, B>(fab: Validation<L, (a: A) => B>, fa: Validation<L, A>) => Validation<L, B>' is not assignable to type '<A, B>(fab: HKT<"Validation", (a: A) => B>, fa: HKT<"Validation", A>) => HKT<"Validation", B>'.
Types of parameters 'fab' and 'fab' are incompatible.
Type 'HKT<"Validation", (a: A) => B>' is not assignable to type 'Validation<{}, (a: A) => B>'.
Type 'HKT<"Validation", (a: A) => B>' is not assignable to type 'Success<{}, (a: A) => B>'.
Property 'value' is missing in type 'HKT<"Validation", (a: A) => B>'.
it may be related to that recent improvement: