I'm trying Threepenny gui in Haskell with ghc-8.0.1, running in cygwin on Windows 10, using Chrome. But I can get only one of the sample programs to work.
I launched the Buttons example from the Threepenny gui samples (runhaskell Buttons.hs), and the gui displayed fine in Chrome. Then I closed the Chrome tab, and tried another example (Canvas.hs). When I entered http://localhost:8023 into Chrome, it brought up the Buttons example again, not Canvas. I've tried several approaches to terminate Buttons, and I've tried most of the other examples in the samples directory, but Buttons always comes up in the browser. The other examples (Canvas etc.) all run fine in the cygwin bash shell, but Buttons always appears in the browser (and Buttons works interactively).
What I've tried: killing the Buttons program. Using http://127.0.0.1:8023. Killing the bash shell and launching a new one. Killing Chrome and launching a new Chrome process. Doing ps to make sure no Haskell process is running, then starting a new bash shell. Trying Firefox. Trying Edge. Removing the History (in all three browsers).
Is there a buffer or stream that has to be cleared manually? How can I run Canvas after having run Buttons: what am I doing wrong? Can a Threepenny application terminate itself cleanly to prevent this problem?