Remove redundant import.
Don't use hardcoded file name.
Turn on warnings.
Fixed warnings.
Better dependency ranges in cabal file.