[Haskell] improve template module name insertion