Fix pretty-printer bugs for HaRP (#160).

Also add the RegularPatterns.hs test file, with example syntax.