Plans for the "new " farmsteads liked to emphasize efficiency, and so "new" stables were often in a line as part of that inner-facing quadrangle. Diane might like to correct me, but I think that this is more of a loose-box type of arrangement- certainly the horses get to see a lot more this way! It's not the case here, but often there would be feed storage above these- not so sure that there would be sleeping accommodations, though.
This happens to be an urban stable in Edinburgh, but apart from being made of stone, it could be just about anywhere. Imagine Mr Robert Martin with such a range, but in brick with a tiled roof.