Config file parsing/writing [Haskell]