I wrote a web server, say a webserver package, and can run it in ghci with:
:main localhost 8000
If I Ctrl-C and run this again, I get
*** Exception: bind: resource busy (Address already in use)
So the socket seems to be connected to my ghci session.
How can I release the binding of this port so that I can :reload and start it again without leaving ghci?
source share