export const isLeft = <A, B>(either: Either<A, B>): either is Left<A> =>
  either.type === "Left"