support GHCJS, which does not have a GHC.Event IO manager
Merge pull request #404 from luite/master

support GHCJS, which does not have a GHC.Event IO manager