structured haskll mode config