staticFiles generates a bunch of identifiers of type Route Static . Unfortunately, Haddock does not display information about related type families, so you cannot see the constructor in documents, but the only constructor available is StaticRoute :
https://github.com/yesodweb/yesod/blob/master/yesod-static/Yesod/Static.hs
Two fields are path information and query string parameters. To create a link to /static/foo/bar?baz=bin , you can use:
StaticRoute ["foo", "bar"] [("baz", "bin")]
Normally, creating a query string parameter is optional, but staticFiles will use it to insert a hash value for caching purposes.
Michael snoyman
source share