Last week I ported +Johan Tibell's excellent ekg to work with +Kazu Yamamoto's webserver package rather than Snap. Johan has merged the patches which split out the Snap support to ekg/master. The link below goes to WebServer.hs from my ekg/webserver branch. It should be pretty clear how to get ekg working with a different web framework, eg. if +Michael Snoyman wants to add process monitoring to Yesod.

One thing I'm not sure about is how to abstract this properly. My branch just uses a cabal flag and CPP to select the dependencies and which module to use. Should we instead make separate packages (ekg-core and then ekg-snap, ekg-webserver, ekg-yesod etc.)?
Shared publiclyView activity