Import Data.List and Data.Maybe instead.

Because old code doesn't work with the new haskell platform.