Happstack

Fix #205, fix #200, fix #198