import { Result } from '../Result' import { failure } from '../Result/constructors' export interface OverflowError { type: 'OverflowError' left: Val right: Val } export const overflow = (left: Val, right: Val): Result> => failure({ type: 'OverflowError', left, right })