Reformater: fix generics with haxe function type notation ("->"), closes #305

Maybe peek at the next character directly to look for '>'?