Path package:hspec-core

A Path describes the location of a spec item within a spec tree. It consists of a list of group descriptions and a requirement description.
Get the path of describe labels, from the root all the way in to the call-site of this function.

Example

>>> :{
runSpecM $ do
describe "foo" $ do
describe "bar" $ do
getSpecDescriptionPath >>= runIO . print
:}
["foo","bar"]
Join a Path with slashes. The result will have a leading and a trailing slash.