import * as t from 'io-ts' import * as E from 'fp-ts/lib/Either' export const eitherRightC = (codecA: t.Type): t.Type> => t.type({ _tag: t.literal('Right'), right: codecA }) export const eitherLeftC = (codecA: t.Type): t.Type> => t.type({ _tag: t.literal('Left'), left: codecA })