In an ideal world, if staffing and resources were no object I don't think visitors should be allowed to stay overnight in shared wards.
If a woman is recovering from C section or difficult labour then they should have a private room where a partner or relative can stay.
Babies should be moved to nurseries to allow the mothers some time to sleep straight after birth, so that once rested they feel more able to care for their newborn.
From others' experiences it also seems like phone calls in bed outside visiting times shouldn't be allowed.