import { constTrue } from 'fp-ts/function' import * as O from 'fp-ts/Option' export const toBoolean = (ma: O.Option): ma is O.Some => O.exists(constTrue)(ma)