>  what is the PROBLEM being solved? 

by making config files follow .hs syntax, cabal file structure may be defined as a data record. This would make it clear, which fields are compulsory, which are optional.

Enums may be used.