Solution to the monomorphism restriction/implicit parameter problem