Detached building accommodating stables and haystores