popstate Code associated with Dynamic semantics with static types (Bumford & Charlow 2022). To do: Replicate all the derivations in the paper Refactor with -XRebindableSyntax or -XQualifiedDo