Clean up and explicitify top-level imports.

All modified files are now also completely prettified via stylish-haskell.