import { Just } from './Just' ; import { Maybe } from './Maybe' ; import { Nothing } from './Nothing' ; export function toMaybe < A > ( value ) { return value == null ? Nothing : Just . of < A > ( value ) ; }