Fixed travis on GHC head

- `global` is deprecated in GHC head.
- unused prelude imports now a warning
- num doesn't imply typeable