XMonad/haskell debugging troubles

The biggest problem i have faced so far  while learning is debugging . Am so used to the imperative style and knowing the program flow,just by looking at code..