Cat 777 haul truck delivered load of stone to new road construction site. The truck backed up to the edge of a shallow trench, which collapsed, causing the truck to tip over on its right side. The driver could not exit the truck due to the height off the ground and dismounted using a portable ladder 45 minutes later.