[PATCH] Various patches for GHC 7.8 compatibility from: Reid Barton rwbarton@gmail.com