Put defaultConfig in IO

This prevents ambiguous type errors.