Stop me wandering haphazardly through village (6)
I believe the answer is:
hamlet
'village' is the definition.
(I know that village can be written as hamlet)
I don't understand the remainder of the clue.
(Other definitions for hamlet that I've seen before include "tragic role" , "famous title role" , "Shak. play; village" , "Danish role" , "DOG" .)