Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
setExt :: String -> FilePath -> FilePath Source #
Set the extension of a filepath or url to the given extension.
Use setExt ""
to remove any extension.
Given a function which creates a url from a tag name and a list of posts (which have a tags property which is a list of strings) this returns a list of tags which contain:
- name: The tag name
- url: The tag's url
- posts: The list of posts matching that tag