replaced some nonreadable regexps with rx macro; used haskell-align-imports-regexp in haskell-utils.el and haskell-sort-imports.el; wrapped some functions into save-match-data; changes some looking-at/string-match to looking-at-p/string-match-p to preserve match data where possible;
replaced one-case ifs with when macro