Directing JavaScript with Arrows (Functional Pearl) Khoo Yit Phang Michael Hicks Jeffrey S. Foster Vibha Sazawal University of Maryland, College Park {khooyp,mwh,jfoster,vibha}@cs.umd.edu Abstract JavaScript, being a single-threaded language, makes extensive use of event-driven programming to enable responsive web applica- tions. However, standard approaches to sequencing events are messy, and of