After searching for some time I found in Pursuit the module DOM.HTML.History
which has the data type DocumentTitle
. This type could probably be used together with the function
replaceState ::
∀ e. Foreign -> DocumentTitle -> URL -> History -> Eff (history :: HISTORY | e) Unit
To change the document.title
property of the page, however, I can't find examples showing how to call this function (e.g., where do I get the external Foreign
data type?). Also, I'm not even sure if this function would do what I expect it to do...