import { throwNIE } from '../../../throw' ; import { fmap , Maybe } from '../1 - functor/maybe' ; import { ap } from '../2 - applicative/maybe' ; export { Maybe , just , nothing } from '../1 - functor/maybe' ; export const zero = < A > ( ) : Maybe < A > => throwNIE ( ) ; export const alt = < A > ( _ma ) => ( _elseA ) : Maybe < A > => throwNIE ( ) ; export const maybe = { zero , alt , ap , fmap , } ;