title: How to extract the final part of the URL's path in Haskell
body: <p>I am using <code>Network.URI</code> to parse a url (<code>String</code>).
  How can I get from the returned <code>URI</code> (<code>parseUri url</code>) the last part of the path? Or there are better alternatives than <code>Network.URI</code>? </p>
  
  <p>For example from:
  <a href="http://www.foo.com/foo1/foo2/bar.html?q=2&amp;q2=x#tag" rel="nofollow">http://www.foo.com/foo1/foo2/bar.html?q=2&amp;q2=x#tag</a> </p>
  
  <p>I would like to get just "bar.html"</p>