Past perfect simple and continuous can normally be used interchangeably with verbs like work, wait, sleep, etc., but I think there have to exist some differences in meaning. I would like you please to help me find out the differences the following sentences may arise:
John found it difficult to wake up early this morning because he had worked hard the night before.
John found it difficult to wake up early this morning because he had been working hard the night before.