Move instances to Types.hs
Move loadConfig in Config.hs