Either
code:Either.ts
type Either<E, A> = Left<E> | Right<A>
同期処理
非同期処理の場合はTaskEither
失敗する
失敗しない場合はOption
Reference: https://gcanti.github.io/fp-ts/modules/Either.ts.html