The Peak District once had a sizeable network of railway lines, despite the difficult terrain it presented to their builders.