pub trait HKT2 {
type T<A, B>;
}
Expand description
A marker that points to a type with 2 generic parameters.
use naan::prelude::*;
enum Either<A, B> {
Left(A),
Right(B),
}
struct EitherHKT;
impl HKT2 for EitherHKT {
type T<A, B> = Either<A, B>;
}