Eight years' jail over child's death