import { Eq } from 'fp-ts/lib/Eq' ; import { Predicate } from 'fp-ts/lib/function' ; since export function equals < A > ( E ) ; export function equals < A > ( E ) { return ( x , y ) => { if ( y === undefined ) { return y => E . equals ( x , y ) ; } else { return E . equals ( x , y ) ; } } ; }